diff options
Diffstat (limited to 'connectivity/source/drivers')
-rw-r--r-- | connectivity/source/drivers/firebird/Driver.cxx | 36 | ||||
-rw-r--r-- | connectivity/source/drivers/firebird/SubComponent.hxx | 5 |
2 files changed, 0 insertions, 41 deletions
diff --git a/connectivity/source/drivers/firebird/Driver.cxx b/connectivity/source/drivers/firebird/Driver.cxx index 09057309186c..5fd13a4c4ca9 100644 --- a/connectivity/source/drivers/firebird/Driver.cxx +++ b/connectivity/source/drivers/firebird/Driver.cxx @@ -248,42 +248,6 @@ namespace connectivity { namespace firebird { - - void release(oslInterlockedCount& _refCount, ::cppu::OBroadcastHelper& rBHelper, - Reference< XInterface >& _xInterface, XComponent* _pObject) - { - if (osl_atomic_decrement( &_refCount ) == 0) - { - osl_atomic_increment( &_refCount ); - - if (!rBHelper.bDisposed && !rBHelper.bInDispose) - { - // remember the parent - Reference< XInterface > xParent; - { - MutexGuard aGuard( rBHelper.rMutex ); - xParent = _xInterface; - _xInterface = nullptr; - } - - // First dispose - _pObject->dispose(); - - // only the alive ref holds the object - OSL_ASSERT( _refCount == 1 ); - - // release the parent in the ~ - if (xParent.is()) - { - MutexGuard aGuard( rBHelper.rMutex ); - _xInterface = xParent; - } - } - } - else - osl_atomic_increment( &_refCount ); - } - void checkDisposed(bool _bThrow) { if (_bThrow) diff --git a/connectivity/source/drivers/firebird/SubComponent.hxx b/connectivity/source/drivers/firebird/SubComponent.hxx index ea03c6512b6f..3fa7727db2ea 100644 --- a/connectivity/source/drivers/firebird/SubComponent.hxx +++ b/connectivity/source/drivers/firebird/SubComponent.hxx @@ -50,11 +50,6 @@ namespace connectivity namespace firebird { - void release(oslInterlockedCount& _refCount, - ::cppu::OBroadcastHelper& rBHelper, - css::uno::Reference< css::uno::XInterface >& _xInterface, - css::lang::XComponent* _pObject); - /// @throws css::lang::DisposedException void checkDisposed(bool _bThrow); |