Index: Source/wtf/Vector.h |
diff --git a/Source/wtf/Vector.h b/Source/wtf/Vector.h |
index 235b638a02710735e11a730dd9ad04d4e1584677..b080656e6be6ddab0e118fe381fad9cbfeb8fe90 100644 |
--- a/Source/wtf/Vector.h |
+++ b/Source/wtf/Vector.h |
@@ -80,17 +80,11 @@ static const size_t kInitialVectorSize = WTF_VECTOR_INITIAL_SIZE; |
} |
}; |
- template <bool needsInitialization, bool canInitializeWithMemset, typename T> |
+ template <bool canInitializeWithMemset, typename T> |
struct VectorInitializer; |
- template<bool ignore, typename T> |
- struct VectorInitializer<false, ignore, T> |
- { |
- static void initialize(T*, T*) {} |
- }; |
- |
template<typename T> |
- struct VectorInitializer<true, false, T> |
+ struct VectorInitializer<false, T> |
{ |
static void initialize(T* begin, T* end) |
{ |
@@ -100,7 +94,7 @@ static const size_t kInitialVectorSize = WTF_VECTOR_INITIAL_SIZE; |
}; |
template<typename T> |
- struct VectorInitializer<true, true, T> |
+ struct VectorInitializer<true, T> |
{ |
static void initialize(T* begin, T* end) |
{ |
@@ -250,7 +244,7 @@ static const size_t kInitialVectorSize = WTF_VECTOR_INITIAL_SIZE; |
static void initialize(T* begin, T* end) |
{ |
- VectorInitializer<VectorTraits<T>::needsInitialization, VectorTraits<T>::canInitializeWithMemset, T>::initialize(begin, end); |
+ VectorInitializer<VectorTraits<T>::canInitializeWithMemset, T>::initialize(begin, end); |
} |
static void move(const T* src, const T* srcEnd, T* dst) |