From 49e440cdc9782ea615e4b6a4dd21e12716a5b675 Mon Sep 17 00:00:00 2001 From: Michal Schmidt Date: Tue, 16 Jun 2015 15:43:06 +0200 Subject: [PATCH] hashmap: remove _IDX_ITERATOR_NIL definition It is unused and rightly so. Users of the hashmap API should not care about the idx values or any other Iterator internals. _IDX_ITERATOR_FIRST in hashmap.h is an exception. It is needed for ITERATOR_FIRST. --- src/basic/hashmap.h | 1 - 1 file changed, 1 deletion(-) diff --git a/src/basic/hashmap.h b/src/basic/hashmap.h index 5723f09ca91..2af23024dee 100644 --- a/src/basic/hashmap.h +++ b/src/basic/hashmap.h @@ -65,7 +65,6 @@ typedef struct { } Iterator; #define _IDX_ITERATOR_FIRST (UINT_MAX - 1) -#define _IDX_ITERATOR_NIL (UINT_MAX) #define ITERATOR_FIRST ((Iterator) { .idx = _IDX_ITERATOR_FIRST, .next_key = NULL }) typedef unsigned long (*hash_func_t)(const void *p, const uint8_t hash_key[HASH_KEY_SIZE]);