Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(972)

Unified Diff: third_party/WebKit/Source/wtf/HashCountedSet.h

Issue 2249393002: Remove one of copyToVector for HashCountedSet (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/HashCountedSet.h
diff --git a/third_party/WebKit/Source/wtf/HashCountedSet.h b/third_party/WebKit/Source/wtf/HashCountedSet.h
index 495c478cc3291659230811173fada54d900d61ae..c6b39e1862dc170284ea258094454a0f37a9140c 100644
--- a/third_party/WebKit/Source/wtf/HashCountedSet.h
+++ b/third_party/WebKit/Source/wtf/HashCountedSet.h
@@ -135,23 +135,6 @@ inline void HashCountedSet<T, U, V, W>::removeAll(iterator it)
m_impl.remove(it);
}
-template <typename T, typename U, typename V, typename W, typename VectorType>
-inline void copyToVector(const HashCountedSet<T, U, V, W>& collection, VectorType& vector)
-{
- typedef typename HashCountedSet<T, U, V, W>::const_iterator iterator;
-
- {
- // Disallow GC across resize allocation, see crbug.com/568173
- typename VectorType::GCForbiddenScope scope;
- vector.resize(collection.size());
- }
-
- iterator it = collection.begin();
- iterator end = collection.end();
- for (unsigned i = 0; it != end; ++it, ++i)
- vector[i] = *it;
-}
-
template <typename Value, typename HashFunctions, typename Traits, typename Allocator, size_t inlineCapacity, typename VectorAllocator>
inline void copyToVector(const HashCountedSet<Value, HashFunctions, Traits, Allocator>& collection, Vector<Value, inlineCapacity, VectorAllocator>& vector)
{
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698