diff options
author | Marshall Clow <mclow.lists@gmail.com> | 2016-01-05 19:44:58 +0000 |
---|---|---|
committer | Marshall Clow <mclow.lists@gmail.com> | 2016-01-05 19:44:58 +0000 |
commit | fd495892d6532e19c2f848c23b838a427a46507f (patch) | |
tree | 3158d9c910958a85695145a70007acbf3b4ee6cc /libcxx/test/support | |
parent | b8060cd88ae444a2b5b76871f13d8ece8461c89d (diff) | |
download | bcm5719-llvm-fd495892d6532e19c2f848c23b838a427a46507f.tar.gz bcm5719-llvm-fd495892d6532e19c2f848c23b838a427a46507f.zip |
Remove some test scaffolding that I added and then didn't need. No functional change
llvm-svn: 256861
Diffstat (limited to 'libcxx/test/support')
-rw-r--r-- | libcxx/test/support/MoveOnly.h | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/libcxx/test/support/MoveOnly.h b/libcxx/test/support/MoveOnly.h index b9653516cfd..ee6ae7c7e5f 100644 --- a/libcxx/test/support/MoveOnly.h +++ b/libcxx/test/support/MoveOnly.h @@ -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 |