]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Remove string hash in ht.h so we can't accidentally use it
authorNick Mathewson <nickm@torproject.org>
Sat, 15 Feb 2014 20:45:38 +0000 (15:45 -0500)
committerNick Mathewson <nickm@torproject.org>
Sat, 15 Feb 2014 20:45:38 +0000 (15:45 -0500)
src/ext/ht.h

index 669a2ed9292fbcd31bb20488f24a2b4fc1df1313..8bf9b8054ba55b623d0305617b026215862e5d3b 100644 (file)
@@ -86,6 +86,7 @@ ht_string_hash(const char *s)
 }
 #endif
 
+#if 0
 /** Basic string hash function, from Python's str.__hash__() */
 static INLINE unsigned
 ht_string_hash(const char *s)
@@ -100,6 +101,7 @@ ht_string_hash(const char *s)
   h ^= (unsigned)(cp-(const unsigned char*)s);
   return h;
 }
+#endif
 
 #ifndef HT_NO_CACHE_HASH_VALUES
 #define HT_SET_HASH_(elm, field, hashfn)        \