summaryrefslogtreecommitdiff
path: root/mysqlc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-03-09 15:23:44 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-03-12 07:36:37 +0100
commitcb34e6083cdc82333d64ad9224e0d25e895d1dae (patch)
treeeea8ac5102d894420d66a12a904a561c45468f2e /mysqlc
parentc9c0f257f4abe738203d2294ca86822e200d3ce3 (diff)
loplugin:unusedmethods
Change-Id: I027adbe65edd5f07534bb36f9f54c55f30ba516e Reviewed-on: https://gerrit.libreoffice.org/50998 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'mysqlc')
-rw-r--r--mysqlc/source/mysqlc_driver.cxx34
-rw-r--r--mysqlc/source/mysqlc_subcomponent.hxx5
2 files changed, 0 insertions, 39 deletions
diff --git a/mysqlc/source/mysqlc_driver.cxx b/mysqlc/source/mysqlc_driver.cxx
index c4e0ba2f7a60..b54463affe6f 100644
--- a/mysqlc/source/mysqlc_driver.cxx
+++ b/mysqlc/source/mysqlc_driver.cxx
@@ -261,40 +261,6 @@ Reference< XInterface > MysqlCDriver_CreateInstance(const Reference< XMultiServi
return(*(new MysqlCDriver(_rxFactory)));
}
-void release(oslInterlockedCount& _refCount,
- ::cppu::OBroadcastHelper& rBHelper,
- Reference< XInterface >& _xInterface,
- css::lang::XComponent* _pObject)
-{
- if (osl_atomic_decrement(&_refCount) == 0) {
- osl_atomic_increment(&_refCount);
-
- if (!rBHelper.bDisposed && !rBHelper.bInDispose) {
- // remember the parent
- Reference< XInterface > xParent;
- {
- ::osl::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 destructor
- if (xParent.is()) {
- ::osl::MutexGuard aGuard(rBHelper.rMutex);
- _xInterface = xParent;
- }
- }
- } else {
- osl_atomic_increment(&_refCount);
- }
-}
-
void checkDisposed(bool _bThrow)
{
if (_bThrow) {
diff --git a/mysqlc/source/mysqlc_subcomponent.hxx b/mysqlc/source/mysqlc_subcomponent.hxx
index 664f4bdd74c8..bb7d4d9386c9 100644
--- a/mysqlc/source/mysqlc_subcomponent.hxx
+++ b/mysqlc/source/mysqlc_subcomponent.hxx
@@ -50,11 +50,6 @@ namespace connectivity
{
namespace mysqlc
{
- 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);