[llvm] 96d19fd - [ADT] Remove llvm::erase_value (#94003)

via llvm-commits llvm-commits at lists.llvm.org
Fri May 31 11:57:44 PDT 2024


Author: Kazu Hirata
Date: 2024-05-31T11:57:40-07:00
New Revision: 96d19fdc2678d1246bb14fed3ff0fc557893d2c4

URL: https://github.com/llvm/llvm-project/commit/96d19fdc2678d1246bb14fed3ff0fc557893d2c4
DIFF: https://github.com/llvm/llvm-project/commit/96d19fdc2678d1246bb14fed3ff0fc557893d2c4.diff

LOG: [ADT] Remove llvm::erase_value (#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

Added: 
    

Modified: 
    llvm/include/llvm/ADT/STLExtras.h

Removed: 
    


################################################################################
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