From 71e2bbe15357e354006a5ea119f87abd982aa65c Mon Sep 17 00:00:00 2001 From: Simon Giesecke Date: Wed, 9 Dec 2020 16:47:13 +0000 Subject: [PATCH] Bug 1680469 - Remove partial std::hash specializations. r=jgilbert Differential Revision: https://phabricator.services.mozilla.com/D98604 --- dom/canvas/CacheInvalidator.h | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/dom/canvas/CacheInvalidator.h b/dom/canvas/CacheInvalidator.h index f78ee74d396b..2bc226c02dc7 100644 --- a/dom/canvas/CacheInvalidator.h +++ b/dom/canvas/CacheInvalidator.h @@ -13,24 +13,6 @@ #include #include -namespace std { // You know it's going to be good with this at the top of the - // file. - -// The STL is lazy and doesn't provide these: -template -struct hash { - auto operator()(const T* const x) const { - return hash()(const_cast(x)); - } -}; - -template -struct hash { - auto operator()(const T x) const { return hash()(const_cast(x)); } -}; - -} // namespace std - // - namespace mozilla { @@ -131,7 +113,7 @@ class CacheWeakMap final { struct DerefHash final { size_t operator()(const KeyT* const a) const { - return std::hash()(*a); + return std::hash()(*a); } }; struct DerefEqual final {