We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66cd2e0 commit 3fa409fCopy full SHA for 3fa409f
llvm/include/llvm/ADT/StringRef.h
@@ -159,14 +159,6 @@ namespace llvm {
159
return StringRef(S, Length);
160
}
161
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
-
170
/// Check for string equality, ignoring case.
171
[[nodiscard]] bool equals_insensitive(StringRef RHS) const {
172
return Length == RHS.Length && compare_insensitive(RHS) == 0;
0 commit comments