diff --git a/collections/motoko/src/ZhenyaHashmap.mo b/collections/motoko/src/ZhenyaHashmap.mo index 4547e1c0..f74a84cb 100644 --- a/collections/motoko/src/ZhenyaHashmap.mo +++ b/collections/motoko/src/ZhenyaHashmap.mo @@ -9,7 +9,7 @@ import Prim "mo:prim"; actor { stable let profiling = Profiling.init(); - let public func hashNat64(key: Nat64): Nat32 { + hashNat64(key: Nat64): Nat32 { Prim.nat64ToNat32(key & 0x0fff_ffff); }; diff --git a/collections/motoko/src/hashmap.mo b/collections/motoko/src/hashmap.mo index f8ae4fc1..ea8f1b3e 100644 --- a/collections/motoko/src/hashmap.mo +++ b/collections/motoko/src/hashmap.mo @@ -9,7 +9,6 @@ import Profiling "../../../utils/motoko/Profiling"; actor { stable let profiling = Profiling.init(); - func hash(x: Nat64) : Nat32 = Hash.hash(Nat64.toNat x); var map = HashMap.HashMap(0, Nat64.equal, hash); stable var stableMap: [(Nat64, Nat64)] = [];