]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
hashmap: remove _IDX_ITERATOR_NIL definition
authorMichal Schmidt <mschmidt@redhat.com>
Tue, 16 Jun 2015 13:43:06 +0000 (15:43 +0200)
committerMichal Schmidt <mschmidt@redhat.com>
Wed, 17 Jun 2015 15:28:44 +0000 (17:28 +0200)
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

index 5723f09ca9134c117652439d92426ccf8b5efadc..2af23024dee8d4058aef259aea4284274bf9310d 100644 (file)
@@ -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]);