[llvm] 877b259 - [NFC] remove unused llvm::deleter

Yuanfang Chen via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 20 10:43:49 PDT 2020


Author: Yuanfang Chen
Date: 2020-07-20T10:43:29-07:00
New Revision: 877b2593c299b619c918cdf26e61b566c1501617

URL: https://github.com/llvm/llvm-project/commit/877b2593c299b619c918cdf26e61b566c1501617
DIFF: https://github.com/llvm/llvm-project/commit/877b2593c299b619c918cdf26e61b566c1501617.diff

LOG: [NFC] remove unused llvm::deleter

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 eed676bb74e1..953cf8aeae23 100644
--- a/llvm/include/llvm/ADT/STLExtras.h
+++ b/llvm/include/llvm/ADT/STLExtras.h
@@ -206,15 +206,6 @@ class function_ref<Ret(Params...)> {
   explicit operator bool() const { return callback; }
 };
 
-// deleter - Very very very simple method that is used to invoke operator
-// delete on something.  It is used like this:
-//
-//   for_each(V.begin(), B.end(), deleter<Interval>);
-template <class T>
-inline void deleter(T *Ptr) {
-  delete Ptr;
-}
-
 //===----------------------------------------------------------------------===//
 //     Extra additions to <iterator>
 //===----------------------------------------------------------------------===//


        


More information about the llvm-commits mailing list