From c335b280c90c88abfe64d6999db64fd1d1caa650 Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Tue, 12 Feb 2019 17:40:52 +0900 Subject: [PATCH] Allow duplicate keys in HashMap --- src/UDPC_HashMap.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/UDPC_HashMap.c b/src/UDPC_HashMap.c index 90d14fc..ef09703 100644 --- a/src/UDPC_HashMap.c +++ b/src/UDPC_HashMap.c @@ -90,8 +90,6 @@ void* UDPC_HashMap_insert(UDPC_HashMap *hm, uint32_t key, void *data) } } - UDPC_HashMap_remove(hm, key); - uint32_t hash = UDPC_HASH32(key) % hm->capacity; char *temp = malloc(sizeof(uint32_t) + hm->unitSize);