diff options
author | Linus Groh <mail@linusgroh.de> | 2022-06-18 13:17:49 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-06-18 13:17:49 +0100 |
commit | 9e79856b43fc2c14eead84882cf2d1c8c8a16cec (patch) | |
tree | 19c4bb76c579fdf5ac94b0ab612670a403004552 | |
parent | 9ed5b2dfb506f9e4f5fd71c572a1fab450a016a7 (diff) | |
download | serenity-9e79856b43fc2c14eead84882cf2d1c8c8a16cec.zip |
Revert "AK: Add comparison operators to NonnullOwnPtr"
This reverts commit 50c88e5e3a6918f99cfcfb802d111cb22a87645c.
The intention was to add them to NonnullRefPtr, not NonnullOwnPtr. That
is also what was advertised in the PR, but not actually done in the
reverted commit.
-rw-r--r-- | AK/NonnullOwnPtr.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/AK/NonnullOwnPtr.h b/AK/NonnullOwnPtr.h index 178cdccaa6..b10ac3ddc7 100644 --- a/AK/NonnullOwnPtr.h +++ b/AK/NonnullOwnPtr.h @@ -135,12 +135,6 @@ public: return NonnullOwnPtr<U>(NonnullOwnPtr<U>::Adopt, static_cast<U&>(*leak_ptr())); } - bool operator==(NonnullOwnPtr const& other) const { return m_ptr == other.m_ptr; } - bool operator!=(NonnullOwnPtr const& other) const { return m_ptr != other.m_ptr; } - - bool operator==(NonnullOwnPtr& other) { return m_ptr == other.m_ptr; } - bool operator!=(NonnullOwnPtr& other) { return m_ptr != other.m_ptr; } - private: void clear() { |