Title: [149742] trunk/Source/WTF
Revision
149742
Author
[email protected]
Date
2013-05-08 09:17:45 -0700 (Wed, 08 May 2013)

Log Message

Remove HashMap::deleteAllKeys
https://bugs.webkit.org/show_bug.cgi?id=115806

Reviewed by Brent Fulgham.

This function was not used anywhere so let's get rid of it.

* wtf/HashMap.h:

Modified Paths

Diff

Modified: trunk/Source/WTF/ChangeLog (149741 => 149742)


--- trunk/Source/WTF/ChangeLog	2013-05-08 16:06:34 UTC (rev 149741)
+++ trunk/Source/WTF/ChangeLog	2013-05-08 16:17:45 UTC (rev 149742)
@@ -1,3 +1,14 @@
+2013-05-08  Anders Carlsson  <[email protected]>
+
+        Remove HashMap::deleteAllKeys
+        https://bugs.webkit.org/show_bug.cgi?id=115806
+
+        Reviewed by Brent Fulgham.
+
+        This function was not used anywhere so let's get rid of it.
+
+        * wtf/HashMap.h:
+
 2013-05-08  Eric Carlson  <[email protected]>
 
         [Mac] Inband text tracks are not in track menu on Lion

Modified: trunk/Source/WTF/wtf/HashMap.h (149741 => 149742)


--- trunk/Source/WTF/wtf/HashMap.h	2013-05-08 16:06:34 UTC (rev 149741)
+++ trunk/Source/WTF/wtf/HashMap.h	2013-05-08 16:17:45 UTC (rev 149742)
@@ -468,15 +468,6 @@
         for (iterator it = collection.begin(); it != end; ++it)
             delete it->value;
     }
-
-    template<typename T, typename U, typename V, typename W, typename X>
-    inline void deleteAllKeys(const HashMap<T, U, V, W, X>& collection)
-    {
-        typedef typename HashMap<T, U, V, W, X>::const_iterator iterator;
-        iterator end = collection.end();
-        for (iterator it = collection.begin(); it != end; ++it)
-            delete it->key;
-    }
     
     template<typename T, typename U, typename V, typename W, typename X, typename Y>
     inline void copyKeysToVector(const HashMap<T, U, V, W, X>& collection, Y& vector)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to