forked from OSchip/llvm-project
Remove unnecessary copy ctors.
They didn't provide any value over the default ones but blocked move semantics. llvm-svn: 202664
This commit is contained in:
parent
4fa2ab26f5
commit
ee68e352a7
|
@ -30,7 +30,6 @@ public:
|
||||||
typedef ValueT key_type;
|
typedef ValueT key_type;
|
||||||
typedef ValueT value_type;
|
typedef ValueT value_type;
|
||||||
|
|
||||||
DenseSet(const DenseSet &Other) : TheMap(Other.TheMap) {}
|
|
||||||
explicit DenseSet(unsigned NumInitBuckets = 0) : TheMap(NumInitBuckets) {}
|
explicit DenseSet(unsigned NumInitBuckets = 0) : TheMap(NumInitBuckets) {}
|
||||||
|
|
||||||
bool empty() const { return TheMap.empty(); }
|
bool empty() const { return TheMap.empty(); }
|
||||||
|
@ -57,11 +56,6 @@ public:
|
||||||
TheMap.swap(RHS.TheMap);
|
TheMap.swap(RHS.TheMap);
|
||||||
}
|
}
|
||||||
|
|
||||||
DenseSet &operator=(const DenseSet &RHS) {
|
|
||||||
TheMap = RHS.TheMap;
|
|
||||||
return *this;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Iterators.
|
// Iterators.
|
||||||
|
|
||||||
class Iterator {
|
class Iterator {
|
||||||
|
|
|
@ -34,9 +34,6 @@ public:
|
||||||
template<typename ItTy>
|
template<typename ItTy>
|
||||||
SmallString(ItTy S, ItTy E) : SmallVector<char, InternalLen>(S, E) {}
|
SmallString(ItTy S, ItTy E) : SmallVector<char, InternalLen>(S, E) {}
|
||||||
|
|
||||||
/// Copy ctor.
|
|
||||||
SmallString(const SmallString &RHS) : SmallVector<char, InternalLen>(RHS) {}
|
|
||||||
|
|
||||||
// Note that in order to add new overloads for append & assign, we have to
|
// 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.
|
// duplicate the inherited versions so as not to inadvertently hide them.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue