Skip to content

Commit 188173e

Browse files
committed
fix std tests
1 parent 3cb4677 commit 188173e

File tree

2 files changed

+0
-22
lines changed

2 files changed

+0
-22
lines changed

std/data/mutable/hashmap-mut.kk

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -78,17 +78,6 @@ pub fun rehash( hm : hash-map-mut<k, v>, buckets : vector<list<(k,v)>>, ?hash :
7878
Just(xs) -> hm.data.unsafe-assign( position.ssize_t, Cons( entry, xs ) )
7979
hm
8080

81-
// Internal function that dictates when to resize the hash-map-mut. This can be overridden with implicits.
82-
pub fun when-resize( table-size : int, item-count : int ) : bool
83-
if 2 * table-size <= item-count then
84-
True
85-
else
86-
False
87-
88-
// Internal function that determines the new size of a hash-map-mut when inserting. This can be overridden with implicits.
89-
pub fun resizer( table-size : int, item-count : int ) : int
90-
item-count * 2
91-
9281
// Inserts a `value` into the hash-map-mut with a given `key`.
9382
pub fun insert( hm : hash-map-mut<k,v>, key : k, value : v, ?hash : (k, int64) -> int, ?(==) : (k, k) -> bool, ?when-resize : (int, int) -> bool, ?resizer : (int, int) -> int ) : hash-map-mut<k, v>
9483
val the-hash = hash(key, hm.seed)

std/data/mutable/hashset-mut.kk

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -75,17 +75,6 @@ pub fun rehash( hs : hash-set-mut<v>, buckets : vector<list<v>>, ?hash : (v, int
7575
Just(xs) -> hs.data.unsafe-assign( position.ssize_t, Cons( entry, xs ) )
7676
hs
7777

78-
// Internal function that dictates when to resize the hash-set-mut. This can be overridden with implicits.
79-
pub fun when-resize( table-size : int, item-count : int ) : bool
80-
if 2 * table-size <= item-count then
81-
True
82-
else
83-
False
84-
85-
// Internal function that determines the new size of a hash-set-mut when inserting. This can be overridden with implicits.
86-
pub fun resizer( table-size : int, item-count : int ) : int
87-
item-count * 2
88-
8978
// Inserts a `value` into the hash-set-mut.
9079
pub fun insert( hs : hash-set-mut<v>, value : v, ?hash : (v, int64) -> int, ?(==) : (v, v) -> bool, ?when-resize : (int, int) -> bool, ?resizer : (int, int) -> int ) : hash-set-mut<v>
9180
val the-hash = hash(value, hs.seed)

0 commit comments

Comments
 (0)