diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-04-04 15:33:20 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-04-04 17:13:21 +0100 |
commit | 1a3c99f2c31dbc4dd6b3b5788ea0b49a34bea2c6 (patch) | |
tree | a2be3e4b33ed214e331b013983643fc8cd488cbf /sfx2 | |
parent | 9f1be6c65210e600baee5c63480df58e8b8ce7b1 (diff) |
callcatcher: update unusedcode
mostly changed due to loplugin:constantfunction
Change-Id: Ib677c78db256f8032a99b3f02a3e363fee68ebcc
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/control/dispatch.cxx | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/sfx2/source/control/dispatch.cxx b/sfx2/source/control/dispatch.cxx index f7b2961ad309..081d1a635383 100644 --- a/sfx2/source/control/dispatch.cxx +++ b/sfx2/source/control/dispatch.cxx @@ -1642,41 +1642,6 @@ SfxSlotFilterState SfxDispatcher::IsSlotEnabledByFilter_Impl( sal_uInt16 nSID ) return bFound ? SFX_SLOT_FILTER_DISABLED : SFX_SLOT_FILTER_ENABLED; } -bool SfxDispatcher::_TryIntercept_Impl -( - sal_uInt16 nSlot, // Slot-Id to search for - SfxSlotServer& rServer, // <SfxSlotServer>-Instance to fill - bool bSelf -) -{ - // Maybe the parent is also belongs to a component - SfxDispatcher *pParent = xImp->pParent; - sal_uInt16 nLevels = xImp->aStack.size(); - while ( pParent && pParent->xImp->pFrame ) - { - nLevels = nLevels + pParent->xImp->aStack.size(); - pParent = pParent->xImp->pParent; - } - - if ( bSelf ) - { - // Query the ComponentViewShell - Flush(); - SfxShell *pObjShell = GetShell(0); - SfxInterface *pIFace = pObjShell->GetInterface(); - const SfxSlot *pSlot = pIFace->GetSlot(nSlot); - - if ( pSlot ) - { - rServer.SetSlot(pSlot); - rServer.SetShellLevel(0); - return true; - } - } - - return false; -} - /** This helper method searches for the <Slot-Server> which currently serves the nSlot. As the result, rServe is filled accordingly. |