diff options
author | José Santiago Jiménez Sarmiento <jimenezsarmiento@gmail.com> | 2012-04-25 17:12:01 +0200 |
---|---|---|
committer | Jesús Corrius <jesus@softcatala.org> | 2012-04-25 17:14:15 +0200 |
commit | f33ed937b675540a0fec71822c3e55568065a433 (patch) | |
tree | 2c48115461530272bf83bb8a713a4fe10e696886 /svtools/source/uno | |
parent | fd257f9e1936b0bc9bc9116bd73eaa04a7dbd060 (diff) |
Remove unused methods
Diffstat (limited to 'svtools/source/uno')
-rw-r--r-- | svtools/source/uno/framestatuslistener.cxx | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/svtools/source/uno/framestatuslistener.cxx b/svtools/source/uno/framestatuslistener.cxx index 502211d3fb33..6579c26feae2 100644 --- a/svtools/source/uno/framestatuslistener.cxx +++ b/svtools/source/uno/framestatuslistener.cxx @@ -233,34 +233,6 @@ void FrameStatusListener::addStatusListener( const rtl::OUString& aCommandURL ) } } -void FrameStatusListener::removeStatusListener( const rtl::OUString& aCommandURL ) -{ - SolarMutexGuard aSolarMutexGuard; - - URLToDispatchMap::iterator pIter = m_aListenerMap.find( aCommandURL ); - if ( pIter != m_aListenerMap.end() ) - { - Reference< XDispatch > xDispatch( pIter->second ); - Reference< XStatusListener > xStatusListener( static_cast< OWeakObject* >( this ), UNO_QUERY ); - m_aListenerMap.erase( pIter ); - - try - { - Reference< XURLTransformer > xURLTransformer( m_xServiceManager->createInstance( - rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.util.URLTransformer" ))), - UNO_QUERY ); - com::sun::star::util::URL aTargetURL; - aTargetURL.Complete = aCommandURL; - xURLTransformer->parseStrict( aTargetURL ); - - if ( xDispatch.is() && xStatusListener.is() ) - xDispatch->removeStatusListener( xStatusListener, aTargetURL ); - } - catch (const Exception&) - { - } - } -} void FrameStatusListener::bindListener() { |