Skip to content

Commit db59b4f

Browse files
[ADT] Remove StringRef::{startswith,endswith} (#89548) (#15983)
These functions have been deprecated since: commit 5ac1295 Author: Kazu Hirata <[email protected]> Date: Sun Dec 17 15:52:50 2023 -0800 Co-authored-by: Kazu Hirata <[email protected]>
1 parent 795ff19 commit db59b4f

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

llvm/include/llvm/ADT/StringRef.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -263,11 +263,6 @@ namespace llvm {
263263
return Length >= Prefix.Length &&
264264
compareMemory(Data, Prefix.Data, Prefix.Length) == 0;
265265
}
266-
[[nodiscard]] LLVM_DEPRECATED(
267-
"Use starts_with instead",
268-
"starts_with") bool startswith(StringRef Prefix) const {
269-
return starts_with(Prefix);
270-
}
271266
[[nodiscard]] bool starts_with(char Prefix) const {
272267
return !empty() && front() == Prefix;
273268
}
@@ -281,11 +276,6 @@ namespace llvm {
281276
compareMemory(end() - Suffix.Length, Suffix.Data, Suffix.Length) ==
282277
0;
283278
}
284-
[[nodiscard]] LLVM_DEPRECATED(
285-
"Use ends_with instead",
286-
"ends_with") bool endswith(StringRef Suffix) const {
287-
return ends_with(Suffix);
288-
}
289279
[[nodiscard]] bool ends_with(char Suffix) const {
290280
return !empty() && back() == Suffix;
291281
}

0 commit comments

Comments
 (0)