projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
folly: kill StringPieceHash
[folly.git]
/
folly
/
Range.h
diff --git
a/folly/Range.h
b/folly/Range.h
index 07e1513f72f655ad5028b7d420ad2c089c941d4f..0ca0f6150aa6a69c6b48158033e1483dda699a13 100644
(file)
--- a/
folly/Range.h
+++ b/
folly/Range.h
@@
-972,13
+972,6
@@
operator>=(const T& lhs, const U& rhs) {
return StringPiece(lhs) >= StringPiece(rhs);
}
return StringPiece(lhs) >= StringPiece(rhs);
}
-// Do NOT use this, use SpookyHashV2 instead, see commment on hash() above.
-struct StringPieceHash {
- std::size_t operator()(const StringPiece str) const {
- return static_cast<std::size_t>(str.hash());
- }
-};
-
/**
* Finds substrings faster than brute force by borrowing from Boyer-Moore
*/
/**
* Finds substrings faster than brute force by borrowing from Boyer-Moore
*/