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

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

Issue 1750983002: Remove unused HashSet<>::isValidValue(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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/HashSet.h
diff --git a/third_party/WebKit/Source/wtf/HashSet.h b/third_party/WebKit/Source/wtf/HashSet.h
index 5aa01929646c90a571b3aa475512aabb3e8433e1..59fd57b98d3fdd6380ea92cb2d99d1a78735667b 100644
--- a/third_party/WebKit/Source/wtf/HashSet.h
+++ b/third_party/WebKit/Source/wtf/HashSet.h
@@ -110,8 +110,6 @@ public:
template <typename Collection>
void removeAll(const Collection& toBeRemoved) { WTF::removeAll(*this, toBeRemoved); }
- static bool isValidValue(ValuePeekInType);
-
ValuePassOutType take(iterator);
ValuePassOutType take(ValuePeekInType);
ValuePassOutType takeAny();
@@ -230,23 +228,6 @@ inline void HashSet<T, U, V, W>::clear()
}
template <typename T, typename U, typename V, typename W>
-inline bool HashSet<T, U, V, W>::isValidValue(ValuePeekInType value)
-{
- if (ValueTraits::isDeletedValue(value))
- return false;
-
- if (HashFunctions::safeToCompareToEmptyOrDeleted) {
- if (value == ValueTraits::emptyValue())
- return false;
- } else {
- if (isHashTraitsEmptyValue<ValueTraits>(value))
- return false;
- }
-
- return true;
-}
-
-template <typename T, typename U, typename V, typename W>
inline typename HashSet<T, U, V, W>::ValuePassOutType HashSet<T, U, V, W>::take(iterator it)
{
if (it == end())
« 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