mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 00:50:22 +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:
parent
9ed5b2dfb5
commit
9e79856b43
Notes:
sideshowbarker
2024-07-17 10:05:58 +09:00
1 changed files with 0 additions and 6 deletions
|
@ -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()
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue