diff options
author | Thorsten Behrens <tbehrens@suse.com> | 2011-12-14 19:35:01 +0100 |
---|---|---|
committer | Thorsten Behrens <tbehrens@suse.com> | 2011-12-16 01:33:49 +0100 |
commit | e0436514c3be513fcb0f02fd45be76f88569515b (patch) | |
tree | 97d098df27d8ba030aa2921d4bc85044b33ba05a /sfx2 | |
parent | 838bf0ecda01de652f0f8c08221a0b12e4667615 (diff) |
Removed unused code.
Clearly this iteration and reading of the referer, that is then
subsequently not used at all by the method, can go.
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/appuno.cxx | 26 |
1 files changed, 2 insertions, 24 deletions
diff --git a/sfx2/source/appl/appuno.cxx b/sfx2/source/appl/appuno.cxx index 93b0e410683e..5e44bbf5e4de 100644 --- a/sfx2/source/appl/appuno.cxx +++ b/sfx2/source/appl/appuno.cxx @@ -1701,23 +1701,12 @@ SfxObjectShell* SfxMacroLoader::GetObjectShell_Impl() // ----------------------------------------------------------------------- void SAL_CALL SfxMacroLoader::dispatchWithNotification( const ::com::sun::star::util::URL& aURL , - const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& lArgs , + const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& /*lArgs*/ , const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatchResultListener >& xListener ) throw (::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; - sal_uInt32 nPropertyCount = lArgs.getLength(); - ::rtl::OUString aReferer; - for( sal_uInt32 nProperty=0; nProperty<nPropertyCount; ++nProperty ) - { - if( lArgs[nProperty].Name == ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Referer")) ) - { - lArgs[nProperty].Value >>= aReferer; - break; - } - } - ::com::sun::star::uno::Any aAny; ErrCode nErr = loadMacro( aURL.Complete, aAny, GetObjectShell_Impl() ); if( xListener.is() ) @@ -1747,22 +1736,11 @@ void SAL_CALL SfxMacroLoader::dispatchWithNotification( const ::com::sun::star:: // ----------------------------------------------------------------------- void SAL_CALL SfxMacroLoader::dispatch( const ::com::sun::star::util::URL& aURL , - const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& lArgs ) + const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& /*lArgs*/ ) throw (::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; - sal_uInt32 nPropertyCount = lArgs.getLength(); - ::rtl::OUString aReferer; - for( sal_uInt32 nProperty=0; nProperty<nPropertyCount; ++nProperty ) - { - if( lArgs[nProperty].Name == ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Referer")) ) - { - lArgs[nProperty].Value >>= aReferer; - break; - } - } - ::com::sun::star::uno::Any aAny; /*ErrCode nErr = */loadMacro( aURL.Complete, aAny, GetObjectShell_Impl() ); } |