diff --git a/modules/beast_core/memory/SharedPtr.h b/modules/beast_core/memory/SharedPtr.h index 68333e93c4..e619a64805 100644 --- a/modules/beast_core/memory/SharedPtr.h +++ b/modules/beast_core/memory/SharedPtr.h @@ -216,14 +216,6 @@ public: return m_p; } - /** Returns the object that this pointer references if any, else nullptr. - DEPRECATED - */ - T* getObject () const noexcept - { - return m_p; - } - private: // Acquire a reference to u for the caller. // diff --git a/modules/beast_core/thread/beast_Listeners.cpp b/modules/beast_core/thread/beast_Listeners.cpp index 6854217313..620cda2d82 100644 --- a/modules/beast_core/thread/beast_Listeners.cpp +++ b/modules/beast_core/thread/beast_Listeners.cpp @@ -616,7 +616,7 @@ void ListenersBase::remove_void (void* const listener) // Remove it from the list and manually release // the reference since the list uses raw pointers. - m_groups.erase (m_groups.iterator_to (*group.getObject ())); + m_groups.erase (m_groups.iterator_to (*group); group->decReferenceCount (); // It is still possible for the group to exist at this