From 370ce3185082b976a6c8de8d4aea07273907a8ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Wed, 3 Aug 2011 22:25:28 +0100 Subject: [PATCH] callcatcher: remove unused methods --- basctl/source/basicide/basides1.cxx | 36 ----------------------------- basctl/source/inc/basidesh.hxx | 1 - 2 files changed, 37 deletions(-) diff --git a/basctl/source/basicide/basides1.cxx b/basctl/source/basicide/basides1.cxx index e3dbc568ffd6..4fecf6e79683 100644 --- a/basctl/source/basicide/basides1.cxx +++ b/basctl/source/basicide/basides1.cxx @@ -1396,40 +1396,4 @@ void BasicIDEShell::Deactivate( sal_Bool bMDI ) } } - -IMPL_LINK( BasicIDEShell, AccelSelectHdl, Accelerator*, pAccel ) -{ - sal_Bool bDone = sal_True; - SfxViewFrame* pViewFrame = GetViewFrame(); - SfxDispatcher* pDispatcher = pViewFrame ? pViewFrame->GetDispatcher() : NULL; - if( !pDispatcher ) - return sal_False; - switch ( pAccel->GetCurKeyCode().GetCode() ) - { - case KEY_F5: - if ( pAccel->GetCurKeyCode().IsShift() ) - pDispatcher->Execute( SID_BASICSTOP, SFX_CALLMODE_SYNCHRON ); - else - pDispatcher->Execute( SID_BASICRUN, SFX_CALLMODE_SYNCHRON ); - break; - case KEY_F7: - pDispatcher->Execute( SID_BASICIDE_ADDWATCH, SFX_CALLMODE_SYNCHRON ); - break; - case KEY_F8: - if ( pAccel->GetCurKeyCode().IsShift() ) - pDispatcher->Execute( SID_BASICSTEPOVER, SFX_CALLMODE_SYNCHRON ); - else - pDispatcher->Execute( SID_BASICSTEPINTO, SFX_CALLMODE_SYNCHRON ); - break; - case KEY_F9: - if ( pAccel->GetCurKeyCode().IsShift() ) - pDispatcher->Execute( SID_BASICIDE_TOGGLEBRKPNTENABLED, SFX_CALLMODE_SYNCHRON ); - else - pDispatcher->Execute( SID_BASICIDE_TOGGLEBRKPNT, SFX_CALLMODE_SYNCHRON ); - break; - default: bDone = sal_False; - } - return bDone; -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/basctl/source/inc/basidesh.hxx b/basctl/source/inc/basidesh.hxx index 20f2f1543a4c..b7b7c114926d 100644 --- a/basctl/source/inc/basidesh.hxx +++ b/basctl/source/inc/basidesh.hxx @@ -122,7 +122,6 @@ friend class ContainerListenerImpl; void ImplStartListening( StarBASIC* pBasic ); DECL_LINK( TabBarHdl, TabBar* ); - DECL_LINK( AccelSelectHdl, Accelerator* ); DECL_LINK( ObjectDialogCancelHdl, ObjectCatalog * ); DECL_LINK( TabBarSplitHdl, TabBar * ); #endif