From 361542afd63efd865147a4fe7b0dad005c683517 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Sun, 2 Mar 2014 21:24:52 +0000 Subject: [PATCH] Remove unnecessary copy ctors. They didn't provide any value over the default ones but blocked move semantics. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202664 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/ADT/DenseSet.h | 6 ------ include/llvm/ADT/SmallString.h | 3 --- 2 files changed, 9 deletions(-) diff --git a/include/llvm/ADT/DenseSet.h b/include/llvm/ADT/DenseSet.h index 6abcf6623eb..1d8c39c1441 100644 --- a/include/llvm/ADT/DenseSet.h +++ b/include/llvm/ADT/DenseSet.h @@ -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 { diff --git a/include/llvm/ADT/SmallString.h b/include/llvm/ADT/SmallString.h index 2cfb5b9f2a9..e569f54481a 100644 --- a/include/llvm/ADT/SmallString.h +++ b/include/llvm/ADT/SmallString.h @@ -34,9 +34,6 @@ public: template SmallString(ItTy S, ItTy E) : SmallVector(S, E) {} - /// Copy ctor. - SmallString(const SmallString &RHS) : SmallVector(RHS) {} - // Note that in order to add new overloads for append & assign, we have to // duplicate the inherited versions so as not to inadvertently hide them. -- 2.11.0