Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 4c0059188d3e339e0501822daba55e3f34f1ec8e..b3799e78aa5471c121d619955e75c398f9ef5676 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -5237,22 +5237,6 @@ bool String::IsTwoByteEqualTo(Vector<const uc16> str) { |
} |
-template <typename schar> |
-static inline uint32_t HashSequentialString(const schar* chars, int length) { |
- StringHasher hasher(length); |
- if (!hasher.has_trivial_hash()) { |
- int i; |
- for (i = 0; hasher.is_array_index() && (i < length); i++) { |
- hasher.AddCharacter(chars[i]); |
- } |
- for (; i < length; i++) { |
- hasher.AddCharacterNoIndex(chars[i]); |
- } |
- } |
- return hasher.GetHashField(); |
-} |
- |
- |
uint32_t String::ComputeAndSetHash() { |
// Should only be called if hash code has not yet been computed. |
ASSERT(!HasHashCode()); |