From c1dd91a93c59b19ed9542da61e5b1ce43cf4ffbf Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 22 Jul 2014 08:49:44 +0100 Subject: callcatcher: update unused code Change-Id: I1dd1b40d807c7c9d9b145aca9f69a67d786ec5ff --- sfx2/source/control/objface.cxx | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'sfx2') diff --git a/sfx2/source/control/objface.cxx b/sfx2/source/control/objface.cxx index fe5248375bb3..32c7e8e78a4e 100644 --- a/sfx2/source/control/objface.cxx +++ b/sfx2/source/control/objface.cxx @@ -619,28 +619,4 @@ bool SfxInterface::IsObjectBarVisible(sal_uInt16 nNo) const return pImpData->aObjectBars[nNo]->bVisible; } -const SfxInterface* SfxInterface::GetRealInterfaceForSlot( const SfxSlot *pRealSlot ) const -{ - SAL_WARN_IF( !pImpData->bRegistered, "sfx.control", "Interface not registered" ); - - const SfxInterface* pInterface = this; - - // The slot could also originate from the interface of a shell base class. - do - { - const SfxSlot *pLastSlot = (*pInterface)[pInterface->Count()-1]; - const SfxSlot *pFirstSlot = (*pInterface)[0]; - - // Is pInterface the Owner of pRealSlot ? - if ( pFirstSlot <= pRealSlot && pRealSlot <= pLastSlot ) - break; - - // Otherwise try the Interface of Super class - pInterface = pInterface->pGenoType; - } - while ( pInterface ); - - return pInterface; -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit