[llvm] r233889 - [ADT] Remove dead code.

Sanjoy Das sanjoy at playingwithpointers.com
Wed Apr 1 21:58:08 PDT 2015


Author: sanjoy
Date: Wed Apr  1 23:58:08 2015
New Revision: 233889

URL: http://llvm.org/viewvc/llvm-project?rev=233889&view=rev
Log:
[ADT] Remove dead code.

Nothing is using DenseMapBase::swap.  Besides it does not compile in its
current form.

Modified:
    llvm/trunk/include/llvm/ADT/DenseMap.h

Modified: llvm/trunk/include/llvm/ADT/DenseMap.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/DenseMap.h?rev=233889&r1=233888&r2=233889&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/DenseMap.h (original)
+++ llvm/trunk/include/llvm/ADT/DenseMap.h Wed Apr  1 23:58:08 2015
@@ -341,11 +341,6 @@ protected:
       }
   }
 
-  void swap(DenseMapBase& RHS) {
-    std::swap(getNumEntries(), RHS.getNumEntries());
-    std::swap(getNumTombstones(), RHS.getNumTombstones());
-  }
-
   static unsigned getHashValue(const KeyT &Val) {
     return KeyInfoT::getHashValue(Val);
   }





More information about the llvm-commits mailing list