diff options
author | Michal Schmidt <mschmidt@redhat.com> | 2015-06-16 15:43:06 +0200 |
---|---|---|
committer | Michal Schmidt <mschmidt@redhat.com> | 2015-06-17 17:28:44 +0200 |
commit | 49e440cdc9782ea615e4b6a4dd21e12716a5b675 (patch) | |
tree | 44327d109bced17207aa7ac362f2dfc9c44d43d4 /src/basic | |
parent | a54941f1b47507e1609f0d8eb224f5a5a5732c0e (diff) |
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.
Diffstat (limited to 'src/basic')
-rw-r--r-- | src/basic/hashmap.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/basic/hashmap.h b/src/basic/hashmap.h index 5723f09ca9..2af23024de 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]); |