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

Unified Diff: runtime/platform/hashmap.h

Issue 2542103002: VM: Remove unused (and incomplete) HashMap::Remove() function (Closed)
Patch Set: Created 4 years 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 | « runtime/bin/hashmap_test.cc ('k') | runtime/platform/hashmap.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/platform/hashmap.h
diff --git a/runtime/platform/hashmap.h b/runtime/platform/hashmap.h
index 240e94d1a0f523a4c7eb17f2537507295bf588c5..be8278e909d61aa90928a9733f027c2f2907dd1e 100644
--- a/runtime/platform/hashmap.h
+++ b/runtime/platform/hashmap.h
@@ -66,23 +66,6 @@ class HashMap {
// otherwise the iteration might step over elements!
void Remove(void* key, uint32_t hash);
- // Removes the entry and returns the next entry (in iteration order) after
- // this one.
- //
- // Usage instructions for removing elements during iteration:
- //
- // HashMap::Entry* current = map.Start();
- // while (current != NULL) {
- // ...
- // if (condition) {
- // current = map.Remove(current);
- // } else {
- // current = map.Next(current);
- // }
- // }
- //
- Entry* Remove(Entry* entry);
-
// Empties the hash map (occupancy() == 0), and calls the function 'clear' on
// each of the values if given.
void Clear(ClearFun clear = NULL);
« no previous file with comments | « runtime/bin/hashmap_test.cc ('k') | runtime/platform/hashmap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698