diff options
Diffstat (limited to 'deps/hiredis/dict.c')
-rw-r--r-- | deps/hiredis/dict.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/deps/hiredis/dict.c b/deps/hiredis/dict.c index 34a33ead9..ad571818e 100644 --- a/deps/hiredis/dict.c +++ b/deps/hiredis/dict.c @@ -267,16 +267,11 @@ static dictEntry *dictFind(dict *ht, const void *key) { return NULL; } -static dictIterator *dictGetIterator(dict *ht) { - dictIterator *iter = hi_malloc(sizeof(*iter)); - if (iter == NULL) - return NULL; - +static void dictInitIterator(dictIterator *iter, dict *ht) { iter->ht = ht; iter->index = -1; iter->entry = NULL; iter->nextEntry = NULL; - return iter; } static dictEntry *dictNext(dictIterator *iter) { @@ -299,10 +294,6 @@ static dictEntry *dictNext(dictIterator *iter) { return NULL; } -static void dictReleaseIterator(dictIterator *iter) { - hi_free(iter); -} - /* ------------------------- private functions ------------------------------ */ /* Expand the hash table if needed */ |