Commit e0be2289 authored by antirez's avatar antirez
Browse files

hash table example commented out in dict.c

parent b3aa6d71
...@@ -615,6 +615,12 @@ void dictDisableResize(void) { ...@@ -615,6 +615,12 @@ void dictDisableResize(void) {
dict_can_resize = 0; 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 ------------------------*/ /* ----------------------- StringCopy Hash Table Type ------------------------*/
static unsigned int _dictStringCopyHTHashFunction(const void *key) static unsigned int _dictStringCopyHTHashFunction(const void *key)
...@@ -678,3 +684,4 @@ dictType dictTypeHeapStringCopyKeyValue = { ...@@ -678,3 +684,4 @@ dictType dictTypeHeapStringCopyKeyValue = {
_dictStringDestructor, /* key destructor */ _dictStringDestructor, /* key destructor */
_dictStringDestructor, /* val destructor */ _dictStringDestructor, /* val destructor */
}; };
#endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment