diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-07 13:42:58 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-08 08:44:32 +0100 |
commit | bb7ade140df807b6a0f12766a1365b8f8d0fd342 (patch) | |
tree | d90de305c953a613373d27f8f89bb95c43ee9eb4 /connectivity | |
parent | 44d5188b2fd8afc82aa8fda1ad4b374734129aea (diff) |
loplugin:unusedmethods
Change-Id: Id6b4edd265cb6bef31c72e2a0a440211d51c7c33
Reviewed-on: https://gerrit.libreoffice.org/50900
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'connectivity')
-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); |