[llvm] [ADT] Remove llvm::erase_value (PR #94003)

via llvm-commits llvm-commits at lists.llvm.org
Fri May 31 11:23:39 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-llvm-adt

Author: Kazu Hirata (kazutakahirata)

<details>
<summary>Changes</summary>

The function has been deprecated since:

  commit f9306f6de3bd19a2dcacd64566852a5f92c86e77
  Author: Kazu Hirata <kazu@<!-- -->google.com>
  Date:   Tue Oct 24 23:03:13 2023 -0700

---
Full diff: https://github.com/llvm/llvm-project/pull/94003.diff


1 Files Affected:

- (modified) llvm/include/llvm/ADT/STLExtras.h (-6) 


``````````diff
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());

``````````

</details>


https://github.com/llvm/llvm-project/pull/94003


More information about the llvm-commits mailing list