summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-08-25 09:40:40 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-08-25 09:42:07 +0100
commit005f5d443e432130b902e1c78283c5f57f34d2b5 (patch)
tree6eb3f4607ffd07d06f197de6760201af07d9589c /svtools
parent01f5362e7982cc1e5b8c9fa7216c892667971737 (diff)
remove freshly unused methods
Diffstat (limited to 'svtools')
-rw-r--r--svtools/inc/svtools/framestatuslistener.hxx2
-rw-r--r--svtools/source/uno/framestatuslistener.cxx43
2 files changed, 0 insertions, 45 deletions
diff --git a/svtools/inc/svtools/framestatuslistener.hxx b/svtools/inc/svtools/framestatuslistener.hxx
index ba909d30bfe5..3e5b8713e893 100644
--- a/svtools/inc/svtools/framestatuslistener.hxx
+++ b/svtools/inc/svtools/framestatuslistener.hxx
@@ -56,8 +56,6 @@ class SVT_DLLPUBLIC FrameStatusListener : public ::com::sun::star::frame::XStatu
const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& xFrame );
virtual ~FrameStatusListener();
- void updateStatus( const rtl::OUString aCommandURL );
-
// methods to support status forwarder, known by the old sfx2 toolbox controller implementation
void addStatusListener( const rtl::OUString& aCommandURL );
void removeStatusListener( const rtl::OUString& aCommandURL );
diff --git a/svtools/source/uno/framestatuslistener.cxx b/svtools/source/uno/framestatuslistener.cxx
index a86fb21128f7..a0cefd6b8d02 100644
--- a/svtools/source/uno/framestatuslistener.cxx
+++ b/svtools/source/uno/framestatuslistener.cxx
@@ -380,49 +380,6 @@ void FrameStatusListener::unbindListener()
}
}
-void FrameStatusListener::updateStatus( const rtl::OUString aCommandURL )
-{
- Reference< XDispatch > xDispatch;
- Reference< XStatusListener > xStatusListener;
- com::sun::star::util::URL aTargetURL;
-
- {
- SolarMutexGuard aSolarMutexGuard;
-
- if ( !m_bInitialized )
- return;
-
- // Try to find a dispatch object for the requested command URL
- Reference< XDispatchProvider > xDispatchProvider( m_xFrame, UNO_QUERY );
- xStatusListener = Reference< XStatusListener >( static_cast< OWeakObject* >( this ), UNO_QUERY );
- if ( m_xServiceManager.is() && xDispatchProvider.is() )
- {
- Reference< XURLTransformer > xURLTransformer( m_xServiceManager->createInstance(
- rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.util.URLTransformer" ))),
- UNO_QUERY );
- aTargetURL.Complete = aCommandURL;
- xURLTransformer->parseStrict( aTargetURL );
- xDispatch = xDispatchProvider->queryDispatch( aTargetURL, rtl::OUString(), 0 );
- }
- }
-
- if ( xDispatch.is() && xStatusListener.is() )
- {
- // Catch exception as we release our mutex, it is possible that someone else
- // has already disposed this instance!
- // Add/remove status listener to get a update status information from the
- // requested command.
- try
- {
- xDispatch->addStatusListener( xStatusListener, aTargetURL );
- xDispatch->removeStatusListener( xStatusListener, aTargetURL );
- }
- catch ( Exception& )
- {
- }
- }
-}
-
} // svt
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */