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

Unified Diff: third_party/WebKit/Source/platform/wtf/HashTraits.h

Issue 2844583004: WTF::HashTraits: Remove unnecessary Peek() functions. (Closed)
Patch Set: Created 3 years, 8 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/platform/wtf/HashTraits.h
diff --git a/third_party/WebKit/Source/platform/wtf/HashTraits.h b/third_party/WebKit/Source/platform/wtf/HashTraits.h
index c0bbf579156f97c5b0933a5288c58b2ce73282a3..1e6122a44cf141cfde773f947a23b6add7e428c4 100644
--- a/third_party/WebKit/Source/platform/wtf/HashTraits.h
+++ b/third_party/WebKit/Source/platform/wtf/HashTraits.h
@@ -223,7 +223,6 @@ struct HashTraits<RefPtr<P>> : SimpleClassHashTraits<RefPtr<P>> {
typedef P* PeekOutType;
static PeekOutType Peek(const RefPtr<P>& value) { return value.Get(); }
- static PeekOutType Peek(std::nullptr_t) { return 0; }
};
template <typename T>
@@ -245,7 +244,6 @@ struct HashTraits<std::unique_ptr<T>>
static PeekOutType Peek(const std::unique_ptr<T>& value) {
return value.get();
}
- static PeekOutType Peek(std::nullptr_t) { return nullptr; }
static void ConstructDeletedValue(std::unique_ptr<T>& slot, bool) {
// Dirty trick: implant an invalid pointer to unique_ptr. Destructor isn't
« 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