From 9e79856b43fc2c14eead84882cf2d1c8c8a16cec Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Sat, 18 Jun 2022 13:17:49 +0100 Subject: [PATCH] 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. --- AK/NonnullOwnPtr.h | 6 ------ 1 file changed, 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(NonnullOwnPtr::Adopt, static_cast(*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() {