From fd688d1df388906c02d4b0f1980750748f2b45fc Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Sat, 3 Jan 2015 17:58:15 -0800 Subject: Remove unused hash. ExternalStringHashMap used to store std::strings long ago. Since it doesn't anymore, this specialization isn't needed. No behavior change. --- src/hash_map.h | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/hash_map.h b/src/hash_map.h index 9b98ca8..b57a631 100644 --- a/src/hash_map.h +++ b/src/hash_map.h @@ -88,26 +88,17 @@ struct StringPieceCmp : public hash_compare { }; #else - #include using __gnu_cxx::hash_map; namespace __gnu_cxx { template<> -struct hash { - size_t operator()(const std::string& s) const { - return hash()(s.c_str()); - } -}; - -template<> struct hash { size_t operator()(StringPiece key) const { return MurmurHash2(key.str_, key.len_); } }; - } #endif -- cgit v0.12