From f1142cf2b59268ebf2a765f1ad33ca701b47ebed Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Wed, 11 May 2016 22:15:24 +0900 Subject: [PATCH] Adapt to changes on hash functions of Chrome 50 --- atom/common/api/atom_api_v8_util.cc | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/atom/common/api/atom_api_v8_util.cc b/atom/common/api/atom_api_v8_util.cc index 79c00d221289..7b7655c6cd2e 100644 --- a/atom/common/api/atom_api_v8_util.cc +++ b/atom/common/api/atom_api_v8_util.cc @@ -14,22 +14,6 @@ #include "native_mate/dictionary.h" #include "v8/include/v8-profiler.h" -// Following code should be removed after we upgraded to Chrome 50. -#if !defined(COMPILER_MSVC) -namespace base { - -template -inline size_t HashInts(T1 value1, T2 value2) { - // This condition is expected to be compile-time evaluated and optimised away - // in release builds. - if (sizeof(T1) > sizeof(uint32_t) || (sizeof(T2) > sizeof(uint32_t))) - return HashInts64(value1, value2); - - return HashInts32(value1, value2); -} - -} // namespace base - namespace std { // The hash function used by DoubleIDWeakMap. @@ -41,7 +25,6 @@ struct hash> { }; } // namespace std -#endif // defined(COMPILER_MSVC) namespace mate {