From 98b77ad1e6acbbdda4843a4b57c1185d53884581 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 18 Oct 2016 11:36:17 +0200 Subject: loplugin:expandablemethods in UnoControls..vbahelper Change-Id: Iec2c5e13119d97c9ca87e083c0f7cb00227e5231 Reviewed-on: https://gerrit.libreoffice.org/29997 Tested-by: Jenkins Reviewed-by: Noel Grandin --- UnoControls/inc/basecontrol.hxx | 6 ------ UnoControls/source/base/basecontrol.cxx | 20 ++------------------ 2 files changed, 2 insertions(+), 24 deletions(-) (limited to 'UnoControls') diff --git a/UnoControls/inc/basecontrol.hxx b/UnoControls/inc/basecontrol.hxx index 2be5cb5e68f9..f78686e483fb 100644 --- a/UnoControls/inc/basecontrol.hxx +++ b/UnoControls/inc/basecontrol.hxx @@ -352,12 +352,6 @@ public: virtual void SAL_CALL windowShown( const css::lang::EventObject& aEvent ) throw( css::uno::RuntimeException, std::exception ) override; virtual void SAL_CALL windowHidden( const css::lang::EventObject& aEvent ) throw( css::uno::RuntimeException, std::exception ) override; - // impl but public method to register service - - static const css::uno::Sequence< OUString > impl_getStaticSupportedServiceNames(); - - static const OUString impl_getStaticImplementationName(); - protected: using OComponentHelper::disposing; diff --git a/UnoControls/source/base/basecontrol.cxx b/UnoControls/source/base/basecontrol.cxx index 2bbf46556649..b9c7e4cf0052 100644 --- a/UnoControls/source/base/basecontrol.cxx +++ b/UnoControls/source/base/basecontrol.cxx @@ -196,7 +196,7 @@ Any SAL_CALL BaseControl::queryAggregation( const Type& aType ) throw( RuntimeEx OUString SAL_CALL BaseControl::getImplementationName() throw( RuntimeException, std::exception ) { - return impl_getStaticImplementationName(); + return OUString(); } // XServiceInfo @@ -210,7 +210,7 @@ sal_Bool SAL_CALL BaseControl::supportsService( const OUString& sServiceName ) t Sequence< OUString > SAL_CALL BaseControl::getSupportedServiceNames() throw( RuntimeException, std::exception ) { - return impl_getStaticSupportedServiceNames(); + return Sequence< OUString >(); } // XComponent @@ -702,22 +702,6 @@ void SAL_CALL BaseControl::windowHidden( const EventObject& /*aEvent*/ ) throw( { } -// impl but public method to register service in DLL -// (In this BASE-implementation not implemented! Overwrite it in derived classes.) - -const Sequence< OUString > BaseControl::impl_getStaticSupportedServiceNames() -{ - return Sequence< OUString >(); -} - -// impl but public method to register service in DLL -// (In this BASE-implementation not implemented! Overwrite it in derived classes.) - -const OUString BaseControl::impl_getStaticImplementationName() -{ - return OUString(); -} - // protected method WindowDescriptor* BaseControl::impl_getWindowDescriptor( const Reference< XWindowPeer >& xParentPeer ) -- cgit