From: antirez Date: Wed, 18 Apr 2012 21:56:07 +0000 (+0200) Subject: Currenly not used code in dict.c commented out. X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/d54943b76d97eae8954a89ca1a259f86ea6a8e32 Currenly not used code in dict.c commented out. --- diff --git a/src/dict.c b/src/dict.c index 6fd4584e..2835de56 100644 --- a/src/dict.c +++ b/src/dict.c @@ -633,6 +633,21 @@ void dictEmpty(dict *d) { d->iterators = 0; } +void dictEnableResize(void) { + dict_can_resize = 1; +} + +void dictDisableResize(void) { + dict_can_resize = 0; +} + +#if 0 + +The following is code that we don't use for Redis currently, but that is part +of the library. + +/* ----------------------- Debugging ------------------------*/ + #define DICT_STATS_VECTLEN 50 static void _dictPrintStatsHt(dictht *ht) { unsigned long i, slots = 0, chainlen, maxchainlen = 0; @@ -686,20 +701,6 @@ void dictPrintStats(dict *d) { } } -void dictEnableResize(void) { - dict_can_resize = 1; -} - -void dictDisableResize(void) { - dict_can_resize = 0; -} - -#if 0 - -/* The following are just example hash table types implementations. - * Not useful for Redis so they are commented out. - */ - /* ----------------------- StringCopy Hash Table Type ------------------------*/ static unsigned int _dictStringCopyHTHashFunction(const void *key)