1
0
mirror of https://github.com/SerenityOS/serenity synced 2024-07-05 21:14:49 +00:00

Revert "AK: Add comparison operators to NonnullOwnPtr"

This reverts commit 50c88e5e3a.

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.
This commit is contained in:
Linus Groh 2022-06-18 13:17:49 +01:00
parent 9ed5b2dfb5
commit 9e79856b43

View File

@ -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()
{