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

Unified Diff: base/stl_util.h

Issue 2293153002: Remove stl_util's STLDeleteContainerPairFirstPointers. (Closed)
Patch Set: fixing 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
Index: base/stl_util.h
diff --git a/base/stl_util.h b/base/stl_util.h
index c7f51a79915dea3e1c625787f7a251b82329362d..29c82e6a36b97beabe5c0dee1066acc641bd30cd 100644
--- a/base/stl_util.h
+++ b/base/stl_util.h
@@ -47,19 +47,6 @@ void STLDeleteContainerPointers(ForwardIterator begin, ForwardIterator end) {
}
}
-// For a range within a container of pairs, calls delete (non-array version) on
-// the FIRST item in the pairs.
-// NOTE: Like STLDeleteContainerPointers, deleting behind the iterator.
-template <class ForwardIterator>
-void STLDeleteContainerPairFirstPointers(ForwardIterator begin,
- ForwardIterator end) {
- while (begin != end) {
- ForwardIterator temp = begin;
- ++begin;
- delete temp->first;
- }
-}
-
// For a range within a container of pairs, calls delete.
// NOTE: Like STLDeleteContainerPointers, deleting behind the iterator.
// Deleting the value does not always invalidate the iterator, but it may
« no previous file with comments | « no previous file | chrome/browser/extensions/blacklist_state_fetcher.h » ('j') | chrome/browser/predictors/resource_prefetcher.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698