Daniele Bartolini 8 лет назад
Родитель
Сommit
88b1ed2cdd
3 измененных файлов с 0 добавлено и 22 удалено
  1. 0 10
      src/core/containers/array.h
  2. 0 2
      src/core/containers/container_types.h
  3. 0 10
      src/core/containers/vector.h

+ 0 - 10
src/core/containers/array.h

@@ -259,16 +259,6 @@ inline Array<T>::Array(Allocator& a)
 {
 }
 
-template <typename T>
-inline Array<T>::Array(Allocator& a, u32 capacity)
-	: _allocator(&a)
-	, _capacity(0)
-	, _size(0)
-	, _data(NULL)
-{
-	array::resize(*this, capacity);
-}
-
 template <typename T>
 inline Array<T>::Array(const Array<T>& other)
 	: _allocator(other._allocator)

+ 0 - 2
src/core/containers/container_types.h

@@ -32,7 +32,6 @@ struct Array
 	T* _data;
 
 	Array(Allocator& a);
-	Array(Allocator& a, u32 capacity);
 	Array(const Array<T>& other);
 	~Array();
 	T& operator[](u32 index);
@@ -60,7 +59,6 @@ struct Vector
 	T* _data;
 
 	Vector(Allocator& a);
-	Vector(Allocator& a, u32 capacity);
 	Vector(const Vector<T>& other);
 	~Vector();
 	T& operator[](u32 index);

+ 0 - 10
src/core/containers/vector.h

@@ -268,16 +268,6 @@ inline Vector<T>::Vector(Allocator& a)
 {
 }
 
-template <typename T>
-inline Vector<T>::Vector(Allocator& a, u32 capacity)
-	: _allocator(&a)
-	, _capacity(0)
-	, _size(0)
-	, _data(NULL)
-{
-	vector::resize(*this, capacity);
-}
-
 template <typename T>
 inline Vector<T>::Vector(const Vector<T>& other)
 	: _allocator(other._allocator)