summaryrefslogtreecommitdiffstats
path: root/base/stl_util-inl.h
diff options
context:
space:
mode:
authorwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-18 06:43:04 +0000
committerwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-18 06:43:04 +0000
commit9879138312e4ed9f07dc53dca327569667069e73 (patch)
tree77d4afb5cdf157253895f5d290d177593f67edf4 /base/stl_util-inl.h
parentd5ef0219e7ba30b90952aeef5790bc245553d0fb (diff)
downloadchromium_src-9879138312e4ed9f07dc53dca327569667069e73.zip
chromium_src-9879138312e4ed9f07dc53dca327569667069e73.tar.gz
chromium_src-9879138312e4ed9f07dc53dca327569667069e73.tar.bz2
Revert "Revert "Revert "Add connected socket function to ClientSocketPool and ClientSocketHandle."""
Revert "Fix a memory leak in client_socket_pool_unittest.cc." Guess I still fail. kasperl pointed out that this managed to break layout tests and some reliability tests too. Review URL: http://codereview.chromium.org/113517 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16269 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/stl_util-inl.h')
-rw-r--r--base/stl_util-inl.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/base/stl_util-inl.h b/base/stl_util-inl.h
index 70fa69e..54b7b29 100644
--- a/base/stl_util-inl.h
+++ b/base/stl_util-inl.h
@@ -447,11 +447,4 @@ std::vector<T> SetToVector(const std::set<T>& values) {
return result;
}
-// Test to see if a set, map, hash_set or hash_map contains a particular key.
-// Returns true if the key is in the collection.
-template <typename Collection, typename Key>
-bool ContainsKey(const Collection& collection, const Key& key) {
- return collection.find(key) != collection.end();
-}
-
#endif // BASE_STL_UTIL_INL_H_