diff options
author | Nico Weber <nicolasweber@gmx.de> | 2015-01-04 01:58:15 (GMT) |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2015-01-04 01:58:15 (GMT) |
commit | fd688d1df388906c02d4b0f1980750748f2b45fc (patch) | |
tree | a7998e3d5ed10eb01f5b9ca4266432d7eaac7c7e /src/hash_map.h | |
parent | efdfaa0907dcf687b55f15fad299e460abbcda58 (diff) | |
download | Ninja-fd688d1df388906c02d4b0f1980750748f2b45fc.zip Ninja-fd688d1df388906c02d4b0f1980750748f2b45fc.tar.gz Ninja-fd688d1df388906c02d4b0f1980750748f2b45fc.tar.bz2 |
Remove unused hash<std::string>.
ExternalStringHashMap used to store std::strings long ago. Since it
doesn't anymore, this specialization isn't needed. No behavior change.
Diffstat (limited to 'src/hash_map.h')
-rw-r--r-- | src/hash_map.h | 9 |
1 files changed, 0 insertions, 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<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 |