AK: Remove two redundant RefPtr constructors.

We already have constructors for "const T*" and "const T&" so we don't
need to have non-const variants.
This commit is contained in:
Andreas Kling 2019-08-03 14:16:05 +02:00
parent 69281c22d4
commit c5903ec4bb

View file

@ -23,16 +23,6 @@ public:
{
ref_if_not_null(m_ptr);
}
RefPtr(T* ptr)
: m_ptr(ptr)
{
ref_if_not_null(m_ptr);
}
RefPtr(T& object)
: m_ptr(&object)
{
m_ptr->ref();
}
RefPtr(const T& object)
: m_ptr(const_cast<T*>(&object))
{