From 9f89986d2beb2c45436cc9e5b4da8bd4a79f100c Mon Sep 17 00:00:00 2001 From: Lukas Nykryn Date: Thu, 23 Aug 2012 12:21:55 +0200 Subject: hashmap: hashmap_contains does not need hashmap_entry --- src/shared/hashmap.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/shared') diff --git a/src/shared/hashmap.c b/src/shared/hashmap.c index be37a3659d..0a044b85ad 100644 --- a/src/shared/hashmap.c +++ b/src/shared/hashmap.c @@ -380,14 +380,13 @@ void* hashmap_get(Hashmap *h, const void *key) { bool hashmap_contains(Hashmap *h, const void *key) { unsigned hash; - struct hashmap_entry *e; if (!h) return false; hash = h->hash_func(key) % NBUCKETS; - if (!(e = hash_scan(h, hash, key))) + if (!hash_scan(h, hash, key)) return false; return true; -- cgit v1.2.3-54-g00ecf