Skip to content

Commit

Permalink
[ADT] Remove StringRef::{starts,ends}with_insensitive (#74918)
Browse files Browse the repository at this point in the history
These functions have been deprecated since:

  commit 1117d80
  Author: Kazu Hirata <kazu@google.com>
  Date:   Mon Jun 5 13:18:07 2023 -0700
  • Loading branch information
kazutakahirata committed Dec 9, 2023
1 parent f0c0116 commit b5b250b
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions llvm/include/llvm/ADT/StringRef.h
Original file line number Diff line number Diff line change
Expand Up @@ -264,12 +264,6 @@ namespace llvm {

/// Check if this string starts with the given \p Prefix, ignoring case.
[[nodiscard]] bool starts_with_insensitive(StringRef Prefix) const;
[[nodiscard]] LLVM_DEPRECATED(
"Use starts_with_insensitive instead",
"starts_with_insensitive") bool startswith_insensitive(StringRef Prefix)
const {
return starts_with_insensitive(Prefix);
}

/// Check if this string ends with the given \p Suffix.
[[nodiscard]] bool ends_with(StringRef Suffix) const {
Expand All @@ -283,12 +277,6 @@ namespace llvm {

/// Check if this string ends with the given \p Suffix, ignoring case.
[[nodiscard]] bool ends_with_insensitive(StringRef Suffix) const;
[[nodiscard]] LLVM_DEPRECATED(
"Use ends_with_insensitive instead",
"ends_with_insensitive") bool endswith_insensitive(StringRef Suffix)
const {
return ends_with_insensitive(Suffix);
}

/// @}
/// @name String Searching
Expand Down

0 comments on commit b5b250b

Please sign in to comment.