summaryrefslogtreecommitdiff
path: root/comphelper/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-02-24 09:15:32 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-02-25 08:06:15 +0100
commit970ca8de0be4c4cd9485170f3c56a34b4069eec2 (patch)
tree1eb110e926d1539b729e06ab78e723f5ca19ae1c /comphelper/source
parent880af0672c6362b0dbdae137d92e8ebf85a7b335 (diff)
loplugin:unusedfields in various
Change-Id: I31d0e6c3559af2e322fb474b97f3bbf4d5064831 Reviewed-on: https://gerrit.libreoffice.org/68280 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'comphelper/source')
-rw-r--r--comphelper/source/misc/SelectionMultiplex.cxx10
1 files changed, 0 insertions, 10 deletions
diff --git a/comphelper/source/misc/SelectionMultiplex.cxx b/comphelper/source/misc/SelectionMultiplex.cxx
index d7b7b721bbfc..267266388c71 100644
--- a/comphelper/source/misc/SelectionMultiplex.cxx
+++ b/comphelper/source/misc/SelectionMultiplex.cxx
@@ -40,18 +40,11 @@ void OSelectionChangeListener::_disposing(const EventObject&)
}
-void OSelectionChangeListener::setAdapter(OSelectionChangeMultiplexer* pAdapter)
-{
- ::osl::MutexGuard aGuard(m_rMutex);
- m_xAdapter = pAdapter;
-}
-
OSelectionChangeMultiplexer::OSelectionChangeMultiplexer(OSelectionChangeListener* _pListener, const Reference< XSelectionSupplier>& _rxSet)
:m_xSet(_rxSet)
,m_pListener(_pListener)
,m_nLockCount(0)
{
- m_pListener->setAdapter(this);
osl_atomic_increment(&m_refCount);
{
Reference< XSelectionChangeListener> xPreventDelete(this);
@@ -87,9 +80,6 @@ void SAL_CALL OSelectionChangeMultiplexer::disposing( const EventObject& _rSour
// tell the listener
if (!locked())
m_pListener->_disposing(_rSource);
- // disconnect the listener
- if (m_pListener) // may have been reset whilst calling into _disposing
- m_pListener->setAdapter(nullptr);
}
m_pListener = nullptr;