mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 21:59:17 +00:00
COMMON: Kill disownPtr and getDispose from DisposablePtr
They unnecessarily expose internal details Their only user has been eliminated in the previous commit
This commit is contained in:
parent
27532df2c7
commit
68452ef2e7
13
common/ptr.h
13
common/ptr.h
@ -708,14 +708,6 @@ public:
|
||||
return ret;
|
||||
}
|
||||
|
||||
/**
|
||||
* Clears the pointer without destroying the old object.
|
||||
*/
|
||||
void disownPtr() {
|
||||
_pointer = nullptr;
|
||||
_dispose = DisposeAfterUse::NO;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the plain pointer value.
|
||||
*
|
||||
@ -723,11 +715,6 @@ public:
|
||||
*/
|
||||
PointerType get() const { return _pointer; }
|
||||
|
||||
/**
|
||||
* Returns the pointer's dispose flag.
|
||||
*/
|
||||
DisposeAfterUse::Flag getDispose() const { return _dispose; }
|
||||
|
||||
template <class T2, class DL2>
|
||||
friend class DisposablePtr;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user