diff --git a/Foundation/src/RefCountedObject.cpp b/Foundation/src/RefCountedObject.cpp index 525cc5b84..c1dc42b29 100644 --- a/Foundation/src/RefCountedObject.cpp +++ b/Foundation/src/RefCountedObject.cpp @@ -40,7 +40,7 @@ namespace Poco { -RefCountedObject::RefCountedObject(): _rc(1) +RefCountedObject::RefCountedObject(): _counter(1) { } @@ -50,21 +50,4 @@ RefCountedObject::~RefCountedObject() } -void RefCountedObject::duplicate() const -{ - _rcMutex.lock(); - ++_rc; - _rcMutex.unlock(); -} - - -void RefCountedObject::release() const -{ - _rcMutex.lock(); - int rc = --_rc; - _rcMutex.unlock(); - if (rc == 0) delete this; -} - - } // namespace Poco