Remove some test scaffolding that I added and then didn't need. No functional change

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@256861 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Marshall Clow
2016-01-05 19:44:58 +00:00
parent 3426a86039
commit 17a797c97d

View File

@@ -35,29 +35,6 @@ public:
bool operator< (const MoveOnly& x) const {return data_ < x.data_;}
};
class MoveOnly2
{
MoveOnly2(const MoveOnly&);
MoveOnly2& operator=(const MoveOnly2&);
int data_;
public:
MoveOnly2(int data = 1) : data_(data) {}
MoveOnly2(MoveOnly2&& x)
: data_(x.data_) {x.data_ = 0;}
MoveOnly2& operator=(MoveOnly2&& x)
{data_ = x.data_; x.data_ = 0; return *this;}
MoveOnly2(MoveOnly&& x)
: data_(x.data_) {x.data_ = 0;}
MoveOnly2& operator=(MoveOnly&& x)
{data_ = x.data_; x.data_ = 0; return *this;}
int get() const {return data_;}
bool operator==(const MoveOnly2& x) const {return data_ == x.data_;}
bool operator< (const MoveOnly2& x) const {return data_ < x.data_;}
};
namespace std {
template <>
@@ -67,12 +44,6 @@ struct hash<MoveOnly>
std::size_t operator()(const MoveOnly& x) const {return x.get();}
};
template <>
struct hash<MoveOnly2>
: public std::unary_function<MoveOnly, std::size_t>
{
std::size_t operator()(const MoveOnly2& x) const {return x.get();}
};
}
#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES