From: Nick Mathewson Date: Sat, 15 Feb 2014 20:45:38 +0000 (-0500) Subject: Remove string hash in ht.h so we can't accidentally use it X-Git-Tag: tor-0.2.5.3-alpha~71^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ad6dd0dbee7c757ef5f2f2d38b846ab7d991fb2;p=thirdparty%2Ftor.git Remove string hash in ht.h so we can't accidentally use it --- diff --git a/src/ext/ht.h b/src/ext/ht.h index 669a2ed929..8bf9b8054b 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) \