[ADT] Remove dead code.
authorSanjoy Das <sanjoy@playingwithpointers.com>
Thu, 2 Apr 2015 04:58:08 +0000 (04:58 +0000)
committerSanjoy Das <sanjoy@playingwithpointers.com>
Thu, 2 Apr 2015 04:58:08 +0000 (04:58 +0000)
Nothing is using DenseMapBase::swap.  Besides it does not compile in its
current form.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233889 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/DenseMap.h

index 8c65f70838e6779caa0ae0477242aa2a3276393d..443a620d1af0a44396ce0fd3744bb56758bfc0bd 100644 (file)
@@ -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);
   }