Browse Source

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.
Linus Groh 3 years ago
parent
commit
9e79856b43
1 changed files with 0 additions and 6 deletions
  1. 0 6
      AK/NonnullOwnPtr.h

+ 0 - 6
AK/NonnullOwnPtr.h

@@ -135,12 +135,6 @@ public:
         return NonnullOwnPtr<U>(NonnullOwnPtr<U>::Adopt, static_cast<U&>(*leak_ptr()));
         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:
 private:
     void clear()
     void clear()
     {
     {