From: Michal Schmidt Date: Tue, 16 Jun 2015 13:43:06 +0000 (+0200) Subject: hashmap: remove _IDX_ITERATOR_NIL definition X-Git-Tag: v221~15^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49e440cdc9782ea615e4b6a4dd21e12716a5b675;p=thirdparty%2Fsystemd.git 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. --- 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]);