summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-07-22 08:49:44 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-07-22 09:54:38 +0100
commitc1dd91a93c59b19ed9542da61e5b1ce43cf4ffbf (patch)
treec768ab956587ac40ee05dfdea40939ea6609f83e /sfx2
parent00639459f148ecb8033f42d5f810858729d24501 (diff)
callcatcher: update unused code
Change-Id: I1dd1b40d807c7c9d9b145aca9f69a67d786ec5ff
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/control/objface.cxx24
1 files changed, 0 insertions, 24 deletions
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: */