hotspot/src/share/vm/oops/symbol.cpp
changeset 46492 5848b57c9dc5
parent 40860 34163901ad5f
child 46746 ea379ebb9447
--- a/hotspot/src/share/vm/oops/symbol.cpp	Tue May 23 20:14:52 2017 -0700
+++ b/hotspot/src/share/vm/oops/symbol.cpp	Wed May 24 12:42:44 2017 +0200
@@ -66,22 +66,6 @@
 }
 
 // ------------------------------------------------------------------
-// Symbol::equals
-//
-// Compares the symbol with a string of the given length.
-bool Symbol::equals(const char* str, int len) const {
-  int l = utf8_length();
-  if (l != len) return false;
-  while (l-- > 0) {
-    if (str[l] != (char) byte_at(l))
-      return false;
-  }
-  assert(l == -1, "we should be at the beginning");
-  return true;
-}
-
-
-// ------------------------------------------------------------------
 // Symbol::starts_with
 //
 // Tests if the symbol starts with the specified prefix of the given