diff options
author | Hieu Hoang <fishandfrolick@gmail.com> | 2013-05-27 03:33:01 +0400 |
---|---|---|
committer | Hieu Hoang <fishandfrolick@gmail.com> | 2013-05-27 03:33:01 +0400 |
commit | 1e7a51483f21dd36a46ff7e7c4d37e686b063a74 (patch) | |
tree | 1bd42d4cf61e736dbd2cb13e596718f2998b3bb4 /util | |
parent | 8944ea541a258e1f273e944c69e9df7e84f4e84a (diff) |
delete slow version of FindStringPiece() \Ken
Diffstat (limited to 'util')
-rw-r--r-- | util/string_piece_hash.hh | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/util/string_piece_hash.hh b/util/string_piece_hash.hh index 752a7af4f..aa3e3dd45 100644 --- a/util/string_piece_hash.hh +++ b/util/string_piece_hash.hh @@ -42,14 +42,4 @@ template <class T> typename T::iterator FindStringPiece(T &t, const StringPiece #endif } -// Horribly inefficient versions because Hieu undid my changes. -template <class Entry, class Compare, class Alloc> typename std::set<Entry, Compare, Alloc>::const_iterator FindStringPiece(const std::set<Entry, Compare, Alloc> &t, const StringPiece &key) { - std::string temp(key.data(), key.size()); - return t.find(temp); -} -template <class Entry, class Compare, class Alloc> typename std::set<Entry, Compare, Alloc>::iterator FindStringPiece(std::set<Entry, Compare, Alloc> &t, const StringPiece &key) { - std::string temp(key.data(), key.size()); - return t.find(temp); -} - #endif // UTIL_STRING_PIECE_HASH__ |