[llvm] [ADT] Remove llvm::erase_value (PR #94003)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Fri May 31 11:23:06 PDT 2024
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/94003
The function has been deprecated since:
commit f9306f6de3bd19a2dcacd64566852a5f92c86e77
Author: Kazu Hirata <kazu at google.com>
Date: Tue Oct 24 23:03:13 2023 -0700
>From 2210427ac6f3ba169e560e56f34a2023e52f0a26 Mon Sep 17 00:00:00 2001
From: Kazu Hirata <kazu at google.com>
Date: Thu, 30 May 2024 23:36:56 -0700
Subject: [PATCH] [ADT] Remove llvm::erase_value
The function has been deprecated since:
commit f9306f6de3bd19a2dcacd64566852a5f92c86e77
Author: Kazu Hirata <kazu at google.com>
Date: Tue Oct 24 23:03:13 2023 -0700
---
llvm/include/llvm/ADT/STLExtras.h | 6 ------
1 file changed, 6 deletions(-)
diff --git a/llvm/include/llvm/ADT/STLExtras.h b/llvm/include/llvm/ADT/STLExtras.h
index 08a708e5c5871..e34068592de81 100644
--- a/llvm/include/llvm/ADT/STLExtras.h
+++ b/llvm/include/llvm/ADT/STLExtras.h
@@ -2060,12 +2060,6 @@ void erase(Container &C, ValueType V) {
C.erase(std::remove(C.begin(), C.end(), V), C.end());
}
-template <typename Container, typename ValueType>
-LLVM_DEPRECATED("Use erase instead", "erase")
-void erase_value(Container &C, ValueType V) {
- erase(C, V);
-}
-
/// Wrapper function to append range `R` to container `C`.
///
/// C.insert(C.end(), R.begin(), R.end());
More information about the llvm-commits
mailing list