From 9945998e05ae338ab883177b82868c26fb5d3206 Mon Sep 17 00:00:00 2001 From: Andrew Noyes Date: Fri, 15 Nov 2024 16:30:20 -0800 Subject: [PATCH] Remove unused code in Internal.h --- Internal.h | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/Internal.h b/Internal.h index 8116f01..b3d9f10 100644 --- a/Internal.h +++ b/Internal.h @@ -368,23 +368,6 @@ template > auto set(Arena &arena) { return Set(ArenaAlloc(&arena)); } -template struct MyHash; - -template struct MyHash { - size_t operator()(const T *t) const noexcept { - size_t result; - memcpy(&result, &t, sizeof(result)); - return result; - } -}; - -template -using HashSet = - std::unordered_set, std::equal_to, ArenaAlloc>; -template auto hashSet(Arena &arena) { - return HashSet(ArenaAlloc(&arena)); -} - template bool operator==(const ArenaAlloc &lhs, const ArenaAlloc &rhs) { return lhs.arena == rhs.arena;