From 1ad6dd0dbee7c757ef5f2f2d38b846ab7d991fb2 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Sat, 15 Feb 2014 15:45:38 -0500 Subject: Remove string hash in ht.h so we can't accidentally use it --- src/ext/ht.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ext/ht.h b/src/ext/ht.h index 669a2ed92..8bf9b8054 100644 --- a/src/ext/ht.h +++ b/src/ext/ht.h @@ -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) \ -- cgit v1.2.3