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

Unified Diff: third_party/WebKit/Source/wtf/HashFunctions.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/Functional.h ('k') | third_party/WebKit/Source/wtf/HashMapTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/HashFunctions.h
diff --git a/third_party/WebKit/Source/wtf/HashFunctions.h b/third_party/WebKit/Source/wtf/HashFunctions.h
index 31fc76afbcb80797738e2e417c3b1f2cfbe0d75f..569282b3f780f291ff10230d0b190f7cea5e2576 100644
--- a/third_party/WebKit/Source/wtf/HashFunctions.h
+++ b/third_party/WebKit/Source/wtf/HashFunctions.h
@@ -21,7 +21,6 @@
#ifndef WTF_HashFunctions_h
#define WTF_HashFunctions_h
-#include "wtf/OwnPtr.h"
#include "wtf/RefPtr.h"
#include "wtf/StdLibExtras.h"
#include <memory>
@@ -155,18 +154,6 @@ struct RefPtrHash : PtrHash<T> {
};
template <typename T>
-struct OwnPtrHash : PtrHash<T> {
- using PtrHash<T>::hash;
- static unsigned hash(const OwnPtr<T>& key) { return hash(key.get()); }
-
- static bool equal(const OwnPtr<T>& a, const OwnPtr<T>& b)
- {
- return a.get() == b.get();
- }
- static bool equal(const OwnPtr<T>& a, T* b) { return a == b; }
-};
-
-template <typename T>
struct UniquePtrHash : PtrHash<T> {
using PtrHash<T>::hash;
static unsigned hash(const std::unique_ptr<T>& key) { return hash(key.get()); }
@@ -215,10 +202,6 @@ struct DefaultHash<RefPtr<T>> {
using Hash = RefPtrHash<T>;
};
template <typename T>
-struct DefaultHash<OwnPtr<T>> {
- using Hash = OwnPtrHash<T>;
-};
-template <typename T>
struct DefaultHash<std::unique_ptr<T>> {
using Hash = UniquePtrHash<T>;
};
« no previous file with comments | « third_party/WebKit/Source/wtf/Functional.h ('k') | third_party/WebKit/Source/wtf/HashMapTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698