folly: kill StringPieceHash
[folly.git] / folly / Range.h
index 07e1513f72f655ad5028b7d420ad2c089c941d4f..0ca0f6150aa6a69c6b48158033e1483dda699a13 100644 (file)
@@ -972,13 +972,6 @@ operator>=(const T& lhs, const U& 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
  */