]> git.saurik.com Git - redis.git/commitdiff
hash table example commented out in dict.c
authorantirez <antirez@gmail.com>
Tue, 27 Jul 2010 08:00:38 +0000 (10:00 +0200)
committerantirez <antirez@gmail.com>
Tue, 27 Jul 2010 08:00:38 +0000 (10:00 +0200)
src/dict.c

index 77ce90cb0c0eaadc68a8180b8f744b660ef13514..2d1e752b953b500afaf6a4733a021edeeb312993 100644 (file)
@@ -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