summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2015-01-04 02:01:20 (GMT)
committerNico Weber <nicolasweber@gmx.de>2015-01-04 02:01:20 (GMT)
commit2e922960014e43dd63bd9f8384836d7fd191d1ff (patch)
treea7998e3d5ed10eb01f5b9ca4266432d7eaac7c7e
parentefdfaa0907dcf687b55f15fad299e460abbcda58 (diff)
parentfd688d1df388906c02d4b0f1980750748f2b45fc (diff)
downloadNinja-2e922960014e43dd63bd9f8384836d7fd191d1ff.zip
Ninja-2e922960014e43dd63bd9f8384836d7fd191d1ff.tar.gz
Ninja-2e922960014e43dd63bd9f8384836d7fd191d1ff.tar.bz2
Merge pull request #888 from nico/del
Remove unused hash<std::string>.
-rw-r--r--src/hash_map.h9
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