From 98c9e20913d3e94e1b5d7b3ae2549be4854514b0 Mon Sep 17 00:00:00 2001 From: "trop[bot]" <37223003+trop[bot]@users.noreply.github.com> Date: Thu, 18 Apr 2024 17:32:09 -0400 Subject: [PATCH] chore: remove unused hash function (#41887) Unused since e1e73fa #24115 Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Charles Kerr --- shell/common/api/electron_api_v8_util.cc | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/shell/common/api/electron_api_v8_util.cc b/shell/common/api/electron_api_v8_util.cc index 45b31bb3f9bb..7291024b2522 100644 --- a/shell/common/api/electron_api_v8_util.cc +++ b/shell/common/api/electron_api_v8_util.cc @@ -5,7 +5,6 @@ #include #include -#include "base/hash/hash.h" #include "base/run_loop.h" #include "electron/buildflags/buildflags.h" #include "shell/common/api/electron_api_key_weak_map.h" @@ -17,18 +16,6 @@ #include "url/origin.h" #include "v8/include/v8-profiler.h" -namespace std { - -// The hash function used by DoubleIDWeakMap. -template -struct hash> { - std::size_t operator()(std::pair value) const { - return base::HashInts(base::Hash(value.first), value.second); - } -}; - -} // namespace std - namespace gin { template