From: smh Date: Thu, 22 Apr 2004 07:23:55 +0000 (+0000) Subject: Remove unused parameters and methods X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=cdf47faa1a94c1359c7acc1045aabc4d7c624160;p=modules%2Fkernel.git Remove unused parameters and methods --- diff --git a/src/Event/SALOME_Event.cxx b/src/Event/SALOME_Event.cxx index 7de746341..dfebd7b02 100644 --- a/src/Event/SALOME_Event.cxx +++ b/src/Event/SALOME_Event.cxx @@ -46,10 +46,9 @@ static int MYDEBUG = 0; * Constructor */ //=========================================================== -SALOME_Event::SALOME_Event( int salomeEventType, bool wait, bool autoRelease ): - myType( salomeEventType ), - myWait( wait ), - myAutoRelease( autoRelease ) +SALOME_Event::SALOME_Event(): + myWait( true ), + myAutoRelease( false ) { if(MYDEBUG) MESSAGE( "SALOME_Event::SALOME_Event(): this = "<processed(); - MESSAGE( "QAD_Desktop::eventFilter - SALOME_Event handling - 3" ); - ((QCustomEvent*)e)->setData( 0 ); delete aSE; return TRUE; @@ -475,16 +469,7 @@ void QAD_Desktop::processEvent( SALOME_Event* theEvent ) { if ( !theEvent ) return; - - if(theEvent->Execute()) - return; - - // san - temporary code - to be removed together with VISU_Event and test operations in VISU_I... - for ( ComponentMap::iterator it = myComponents.begin(); it != myComponents.end(); it++ ) { - if ( it.data()->CanProcessEvent( theEvent ) && it.data()->ProcessEvent( theEvent ) ) - break; - } - // san - temporary code - to be removed together with VISU_Event and test operations in VISU_I... + theEvent->Execute(); } /*! diff --git a/src/SALOMEGUI/SALOMEGUI.cxx b/src/SALOMEGUI/SALOMEGUI.cxx index e3843bd25..d0abefe31 100644 --- a/src/SALOMEGUI/SALOMEGUI.cxx +++ b/src/SALOMEGUI/SALOMEGUI.cxx @@ -58,26 +58,6 @@ bool SALOMEGUI::OnGUIEvent(int theCommandID, QAD_Desktop* parent) return true; } -//============================================================================= -/*! - * - */ -//============================================================================= -bool SALOMEGUI::CanProcessEvent(SALOME_Event* se) -{ - return false; -} - -//============================================================================= -/*! - * - */ -//============================================================================= -bool SALOMEGUI::ProcessEvent(SALOME_Event* se) -{ - return false; -} - //============================================================================= /*! * diff --git a/src/SALOMEGUI/SALOMEGUI.h b/src/SALOMEGUI/SALOMEGUI.h index 0594487d4..124ceee0b 100644 --- a/src/SALOMEGUI/SALOMEGUI.h +++ b/src/SALOMEGUI/SALOMEGUI.h @@ -55,8 +55,6 @@ public: virtual ~SALOMEGUI(); virtual bool OnGUIEvent (int theCommandID, QAD_Desktop* parent); - virtual bool CanProcessEvent (SALOME_Event* se); - virtual bool ProcessEvent (SALOME_Event* se); virtual bool OnKeyPress (QKeyEvent* pe, QAD_Desktop* parent, QAD_StudyFrame* studyFrame); virtual bool OnMousePress (QMouseEvent* pe, QAD_Desktop* parent, QAD_StudyFrame* studyFrame); virtual bool OnMouseMove (QMouseEvent* pe, QAD_Desktop* parent, QAD_StudyFrame* studyFrame);