From e0be2289e9582423495c5b36a413c02765cde3ea Mon Sep 17 00:00:00 2001 From: antirez Date: Tue, 27 Jul 2010 10:00:38 +0200 Subject: [PATCH] hash table example commented out in dict.c --- src/dict.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/dict.c b/src/dict.c index 77ce90cb..2d1e752b 100644 --- a/src/dict.c +++ b/src/dict.c @@ -615,6 +615,12 @@ 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) @@ -678,3 +684,4 @@ dictType dictTypeHeapStringCopyKeyValue = { _dictStringDestructor, /* key destructor */ _dictStringDestructor, /* val destructor */ }; +#endif