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

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

Issue 1884113002: Remove RawPtr.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix HeapTest.Bind expectation Created 4 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
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 1d02ceee54fec78b3d199d48fe44b934068019d1..3d76ba50927da8fe4d0534f0b488b3050062610d 100644
--- a/third_party/WebKit/Source/wtf/HashFunctions.h
+++ b/third_party/WebKit/Source/wtf/HashFunctions.h
@@ -155,16 +155,6 @@ struct RefPtrHash : PtrHash<T> {
};
template <typename T>
-struct RawPtrHash : PtrHash<T> {
- using PtrHash<T>::hash;
- static unsigned hash(const RawPtr<T>& key) { return hash(key.get()); }
- using PtrHash<T>::equal;
- static bool equal(const RawPtr<T>& a, const RawPtr<T>& b) { return a == b; }
- static bool equal(T* a, const RawPtr<T>& b) { return a == b; }
- static bool equal(const RawPtr<T>& a, T* b) { return a == b; }
-};
-
-template <typename T>
struct OwnPtrHash : PtrHash<T> {
using PtrHash<T>::hash;
static unsigned hash(const OwnPtr<T>& key) { return hash(key.get()); }
@@ -230,10 +220,6 @@ struct DefaultHash<RefPtr<T>> {
using Hash = RefPtrHash<T>;
};
template <typename T>
-struct DefaultHash<RawPtr<T>> {
- using Hash = RawPtrHash<T>;
-};
-template <typename T>
struct DefaultHash<OwnPtr<T>> {
using Hash = OwnPtrHash<T>;
};
« no previous file with comments | « third_party/WebKit/Source/web/WebSpeechRecognitionResult.cpp ('k') | third_party/WebKit/Source/wtf/HashTraits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698