Skip to content

Commit

Permalink
hash table example commented out in dict.c
Browse files Browse the repository at this point in the history
  • Loading branch information
antirez committed Jul 27, 2010
1 parent b3aa6d7 commit e0be228
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/dict.c
Expand Up @@ -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)
Expand Down Expand Up @@ -678,3 +684,4 @@ dictType dictTypeHeapStringCopyKeyValue = {
_dictStringDestructor, /* key destructor */
_dictStringDestructor, /* val destructor */
};
#endif

0 comments on commit e0be228

Please sign in to comment.