Remove unnecessary copy ctors.
[oota-llvm.git] / include / llvm / ADT / DenseSet.h
index 6abcf6623eb5b5cd54264a75491efac50f81b941..1d8c39c1441be9ae868e0de0d3f46b28996e508f 100644 (file)
@@ -30,7 +30,6 @@ public:
   typedef ValueT key_type;
   typedef ValueT value_type;
 
-  DenseSet(const DenseSet &Other) : TheMap(Other.TheMap) {}
   explicit DenseSet(unsigned NumInitBuckets = 0) : TheMap(NumInitBuckets) {}
 
   bool empty() const { return TheMap.empty(); }
@@ -57,11 +56,6 @@ public:
     TheMap.swap(RHS.TheMap);
   }
 
-  DenseSet &operator=(const DenseSet &RHS) {
-    TheMap = RHS.TheMap;
-    return *this;
-  }
-
   // Iterators.
 
   class Iterator {