8321468: Remove StringUTF16::equals

Reviewed-by: rriggs, kvn
This commit is contained in:
Claes Redestad 2024-02-05 16:30:16 +00:00
parent 19e92201b4
commit 55c1446b68
14 changed files with 25 additions and 138 deletions

View file

@ -451,20 +451,6 @@ final class StringUTF16 {
}
}
@IntrinsicCandidate
public static boolean equals(byte[] value, byte[] other) {
if (value.length == other.length) {
int len = value.length >> 1;
for (int i = 0; i < len; i++) {
if (getChar(value, i) != getChar(other, i)) {
return false;
}
}
return true;
}
return false;
}
@IntrinsicCandidate
public static int compareTo(byte[] value, byte[] other) {
int len1 = length(value);