mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 11:05:54 +00:00
Remove deprecated SharedPtr::getObject
This commit is contained in:
@@ -216,14 +216,6 @@ public:
|
|||||||
return m_p;
|
return m_p;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Returns the object that this pointer references if any, else nullptr.
|
|
||||||
DEPRECATED
|
|
||||||
*/
|
|
||||||
T* getObject () const noexcept
|
|
||||||
{
|
|
||||||
return m_p;
|
|
||||||
}
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Acquire a reference to u for the caller.
|
// Acquire a reference to u for the caller.
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -616,7 +616,7 @@ void ListenersBase::remove_void (void* const listener)
|
|||||||
|
|
||||||
// Remove it from the list and manually release
|
// Remove it from the list and manually release
|
||||||
// the reference since the list uses raw pointers.
|
// 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 ();
|
group->decReferenceCount ();
|
||||||
|
|
||||||
// It is still possible for the group to exist at this
|
// It is still possible for the group to exist at this
|
||||||
|
|||||||
Reference in New Issue
Block a user