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
Notes: sideshowbarker 2024-07-17 10:05:58 +09:00

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