diff --git a/AK/NonnullRefPtr.h b/AK/NonnullRefPtr.h index 023444c8e34..53ab7aeccde 100644 --- a/AK/NonnullRefPtr.h +++ b/AK/NonnullRefPtr.h @@ -142,12 +142,6 @@ public: return *this; } - CALLABLE_WHEN(unconsumed) - NonnullRefPtr copy_ref() const - { - return NonnullRefPtr(*m_ptr); - } - CALLABLE_WHEN(unconsumed) SET_TYPESTATE(consumed) T& leak_ref() diff --git a/AK/RefPtr.h b/AK/RefPtr.h index 2bda6097892..349fb1de1ca 100644 --- a/AK/RefPtr.h +++ b/AK/RefPtr.h @@ -177,11 +177,6 @@ public: return *this; } - RefPtr copy_ref() const - { - return RefPtr(m_ptr); - } - void clear() { deref_if_not_null(m_ptr);