summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-11-03 14:00:28 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-11-04 07:13:58 +0000
commit7abd369964a0c7f9f80cdbc9e47c7dc120fe8257 (patch)
tree70786d0850de5212e30e5611c09cba06a2d26ac9 /svtools
parentfb823544468150a2ef660095a511636be1bf6f9e (diff)
loplugin:unusedmethods
Change-Id: Ie1f840c3ec9a2d5888f95cf05e531a8a9464bf2e Reviewed-on: https://gerrit.libreoffice.org/30524 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/uno/framestatuslistener.cxx36
1 files changed, 0 insertions, 36 deletions
diff --git a/svtools/source/uno/framestatuslistener.cxx b/svtools/source/uno/framestatuslistener.cxx
index bf6c771e39c7..2819b53a569e 100644
--- a/svtools/source/uno/framestatuslistener.cxx
+++ b/svtools/source/uno/framestatuslistener.cxx
@@ -279,42 +279,6 @@ void FrameStatusListener::bindListener()
}
}
-void FrameStatusListener::unbindListener()
-{
- SolarMutexGuard aSolarMutexGuard;
-
- // Collect all registered command URL's and store them temporary
- Reference< XDispatchProvider > xDispatchProvider( m_xFrame, UNO_QUERY );
- if ( m_xContext.is() && xDispatchProvider.is() )
- {
- Reference< XStatusListener > xStatusListener( static_cast< OWeakObject* >( this ), UNO_QUERY );
- URLToDispatchMap::iterator pIter = m_aListenerMap.begin();
- while ( pIter != m_aListenerMap.end() )
- {
- Reference< XURLTransformer > xURLTransformer( css::util::URLTransformer::create( m_xContext ) );
- css::util::URL aTargetURL;
- aTargetURL.Complete = pIter->first;
- xURLTransformer->parseStrict( aTargetURL );
-
- Reference< XDispatch > xDispatch( pIter->second );
- if ( xDispatch.is() )
- {
- // We already have a dispatch object => we have to requery.
- // Release old dispatch object and remove it as listener
- try
- {
- xDispatch->removeStatusListener( xStatusListener, aTargetURL );
- }
- catch (const Exception&)
- {
- }
- }
- pIter->second.clear();
- ++pIter;
- }
- }
-}
-
} // svt
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */