remove need for floor at insert

This commit is contained in:
yrutschle 2022-04-08 21:10:20 +02:00
parent 33d73dd514
commit 97a67500ea
2 changed files with 0 additions and 2 deletions

2
hash.c
View File

@ -149,8 +149,6 @@ int hash_insert(hash* h, hash_item new)
if (h->item_cnt == hash_size)
return -1;
if (index < h->floor) index = h->floor;
hash_item curr_item = gap_get(hash, index);
while (curr_item) {
if (distance(index, h, curr_item) < distance(index, h, new)) {

Binary file not shown.