summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2022-06-18 13:17:49 +0100
committerLinus Groh <mail@linusgroh.de>2022-06-18 13:17:49 +0100
commit9e79856b43fc2c14eead84882cf2d1c8c8a16cec (patch)
tree19c4bb76c579fdf5ac94b0ab612670a403004552
parent9ed5b2dfb506f9e4f5fd71c572a1fab450a016a7 (diff)
downloadserenity-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.h6
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()
{