Remove unused hash<std::string>.
authorNico Weber <nicolasweber@gmx.de>
Sun, 4 Jan 2015 01:58:15 +0000 (17:58 -0800)
committerNico Weber <nicolasweber@gmx.de>
Sun, 4 Jan 2015 01:58:15 +0000 (17:58 -0800)
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

index 9b98ca8..b57a631 100644 (file)
@@ -88,26 +88,17 @@ struct StringPieceCmp : public hash_compare<StringPiece> {
 };
 
 #else
-
 #include <ext/hash_map>
 
 using __gnu_cxx::hash_map;
 
 namespace __gnu_cxx {
 template<>
-struct hash<std::string> {
-  size_t operator()(const std::string& s) const {
-    return hash<const char*>()(s.c_str());
-  }
-};
-
-template<>
 struct hash<StringPiece> {
   size_t operator()(StringPiece key) const {
     return MurmurHash2(key.str_, key.len_);
   }
 };
-
 }
 #endif