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

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

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First attempt to land. Created 4 years, 6 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 | « third_party/WebKit/Source/wtf/HashTable.h ('k') | third_party/WebKit/Source/wtf/LinkedHashSet.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/HashTraits.h
diff --git a/third_party/WebKit/Source/wtf/HashTraits.h b/third_party/WebKit/Source/wtf/HashTraits.h
index bd8f8c9d7bc9e8c40d21d46fb4b5017a4737b31c..3ddd834e2995c00ef327ecec85f9cbbfb1d55ffe 100644
--- a/third_party/WebKit/Source/wtf/HashTraits.h
+++ b/third_party/WebKit/Source/wtf/HashTraits.h
@@ -155,23 +155,6 @@ template <typename T> struct SimpleClassHashTraits : GenericHashTraits<T> {
static bool isDeletedValue(const T& value) { return value.isHashTableDeletedValue(); }
};
-template <typename P> struct HashTraits<OwnPtr<P>> : SimpleClassHashTraits<OwnPtr<P>> {
- typedef std::nullptr_t EmptyValueType;
-
- static EmptyValueType emptyValue() { return nullptr; }
-
- static const bool hasIsEmptyValueFunction = true;
- static bool isEmptyValue(const OwnPtr<P>& value) { return !value; }
-
- typedef typename OwnPtr<P>::PtrType PeekInType;
-
- static void store(PassOwnPtr<P> value, OwnPtr<P>& storage) { storage = std::move(value); }
-
- typedef typename OwnPtr<P>::PtrType PeekOutType;
- static PeekOutType peek(const OwnPtr<P>& value) { return value.get(); }
- static PeekOutType peek(std::nullptr_t) { return 0; }
-};
-
template <typename P> struct HashTraits<RefPtr<P>> : SimpleClassHashTraits<RefPtr<P>> {
typedef std::nullptr_t EmptyValueType;
static EmptyValueType emptyValue() { return nullptr; }
« no previous file with comments | « third_party/WebKit/Source/wtf/HashTable.h ('k') | third_party/WebKit/Source/wtf/LinkedHashSet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698