Skip to content

Commit 3fa409f

Browse files
[ADT] Remove StringRef::equals (#98735)
StringRef::equals has been deprecated since: commit de483ad Author: Kazu Hirata <[email protected]> Date: Thu May 16 00:38:37 2024 -0700
1 parent 66cd2e0 commit 3fa409f

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

llvm/include/llvm/ADT/StringRef.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -159,14 +159,6 @@ namespace llvm {
159159
return StringRef(S, Length);
160160
}
161161

162-
/// equals - Check for string equality, this is more efficient than
163-
/// compare() when the relative ordering of inequal strings isn't needed.
164-
[[nodiscard]] LLVM_DEPRECATED("Use == instead",
165-
"==") bool equals(StringRef RHS) const {
166-
return (Length == RHS.Length &&
167-
compareMemory(Data, RHS.Data, RHS.Length) == 0);
168-
}
169-
170162
/// Check for string equality, ignoring case.
171163
[[nodiscard]] bool equals_insensitive(StringRef RHS) const {
172164
return Length == RHS.Length && compare_insensitive(RHS) == 0;

0 commit comments

Comments
 (0)