From 91f03e514983967f1d4a9e0d391fd4611e4ac0f4 Mon Sep 17 00:00:00 2001 From: phuslu Date: Thu, 4 Jan 2024 21:01:11 +0800 Subject: [PATCH] slim maphash --- maphash.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/maphash.go b/maphash.go index 10390c1..cb29ec4 100644 --- a/maphash.go +++ b/maphash.go @@ -36,14 +36,6 @@ func maphash_NewHasher[K comparable]() maphash_Hasher[K] { } } -// NewSeed returns a copy of |h| with a new hash seed. -func maphash_NewSeed[K comparable](h maphash_Hasher[K]) maphash_Hasher[K] { - return maphash_Hasher[K]{ - hash: h.hash, - seed: maphash_newHashSeed(), - } -} - // Hash hashes |key|. func (h maphash_Hasher[K]) Hash(key K) uint64 { // promise to the compiler that pointer