From 6f428c38c533026c9749f71ed3144db2d4575ab6 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 24 Oct 2016 08:20:45 +0200 Subject: remove unused SfxListener subclassing where the Notify method is doing nothing Change-Id: I834aa40a9bcb0dd8d7335a5688acc5da6f40b0a2 --- svx/source/unodraw/unopage.cxx | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'svx') diff --git a/svx/source/unodraw/unopage.cxx b/svx/source/unodraw/unopage.cxx index 19a869bcfef7..e1cb31a38278 100644 --- a/svx/source/unodraw/unopage.cxx +++ b/svx/source/unodraw/unopage.cxx @@ -67,9 +67,6 @@ SvxDrawPage::SvxDrawPage( SdrPage* pInPage ) throw() // register at broadcaster if( mpPage ) mpModel = mpPage->GetModel(); - if( mpModel ) - StartListening( *mpModel ); - // create (hidden) view mpView = new SdrView( mpModel ); @@ -97,7 +94,6 @@ void SvxDrawPage::disposing() throw() { if( mpModel ) { - EndListening( *mpModel ); mpModel = nullptr; } @@ -186,11 +182,6 @@ void SAL_CALL SvxDrawPage::removeEventListener( const css::uno::Reference< css:: mrBHelper.removeListener( cppu::UnoType::get() , aListener ); } -// SfxListener -void SvxDrawPage::Notify( SfxBroadcaster&, const SfxHint& /*rHint*/ ) -{ -} - void SAL_CALL SvxDrawPage::add( const uno::Reference< drawing::XShape >& xShape ) throw( uno::RuntimeException, std::exception ) { @@ -877,12 +868,6 @@ void SvxDrawPage::ChangeModel( SdrModel* pNewModel ) { if( pNewModel != mpModel ) { - if( mpModel ) - EndListening( *mpModel ); - - if( pNewModel ) - StartListening( *pNewModel ); - mpModel = pNewModel; if( mpView ) -- cgit