summaryrefslogtreecommitdiff
path: root/runtime/utf.cc
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/utf.cc')
-rw-r--r--runtime/utf.cc8
1 files changed, 0 insertions, 8 deletions
diff --git a/runtime/utf.cc b/runtime/utf.cc
index 5e9fdf7fc8..7e06482635 100644
--- a/runtime/utf.cc
+++ b/runtime/utf.cc
@@ -170,14 +170,6 @@ void ConvertUtf16ToModifiedUtf8(char* utf8_out, size_t byte_count,
}
}
-int32_t ComputeUtf16Hash(const uint16_t* chars, size_t char_count) {
- uint32_t hash = 0;
- while (char_count--) {
- hash = hash * 31 + *chars++;
- }
- return static_cast<int32_t>(hash);
-}
-
int32_t ComputeUtf16HashFromModifiedUtf8(const char* utf8, size_t utf16_length) {
uint32_t hash = 0;
while (utf16_length != 0u) {