X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fmisc.h;h=0005fc0fb090a26ac4778ee9cc5659f7090f0c4c;hb=3fe0d5c53389b3d548cf1fbbba3f6c978e9f02ae;hp=69d470c22f8a0098273781739411372d98771ad3;hpb=6abd0bd9fbd8aff7dad653d33ab344d3f47f0042;p=stockfish diff --git a/src/misc.h b/src/misc.h index 69d470c2..0005fc0f 100644 --- a/src/misc.h +++ b/src/misc.h @@ -55,14 +55,6 @@ inline TimePoint now() { (std::chrono::steady_clock::now().time_since_epoch()).count(); } -template -struct HashTable { - Entry* operator[](Key key) { return &table[(uint32_t)key & (Size - 1)]; } - -private: - std::vector table = std::vector(Size); // Allocate on the heap -}; - enum SyncCout { IO_LOCK, IO_UNLOCK }; std::ostream& operator<<(std::ostream&, SyncCout);