From 1ff457f19660f65eb414eea310ad255fdc4725c8 Mon Sep 17 00:00:00 2001 From: vsr Date: Fri, 18 Jul 2008 12:44:12 +0000 Subject: [PATCH] Remove unnecessary code (it is moved to the base class) --- src/SPlot2d/SPlot2d_ViewModel.cxx | 28 ---------------------------- src/SPlot2d/SPlot2d_ViewModel.h | 3 --- 2 files changed, 31 deletions(-) diff --git a/src/SPlot2d/SPlot2d_ViewModel.cxx b/src/SPlot2d/SPlot2d_ViewModel.cxx index 4676bc9b9..993e6bab0 100644 --- a/src/SPlot2d/SPlot2d_ViewModel.cxx +++ b/src/SPlot2d/SPlot2d_ViewModel.cxx @@ -365,34 +365,6 @@ SPlot2d_Curve* SPlot2d_Viewer::getCurveByIO( const Handle(SALOME_InteractiveObje return NULL; } -/*! - SLOT: called when action "Clone view" is activated -*/ -void SPlot2d_Viewer::onCloneView( Plot2d_ViewFrame* clonedVF, Plot2d_ViewFrame* newVF ) -{ - // this code is moved on the level of base class - /*if( !clonedVF || !newVF ) - return; - - // 1) Copy all properties of view - - newVF->copyPreferences( clonedVF ); - - // 2) Display all curves displayed in cloned view - - CurveDict aCurves = clonedVF->getCurves(); - CurveDict::Iterator anIt = aCurves.begin(); - for( ; anIt != aCurves.end(); ++anIt ) - { - SPlot2d_Curve* aCurve = dynamic_cast( anIt.value() ); - if( aCurve && clonedVF->isVisible( aCurve ) ) - newVF->displayCurve( aCurve, false ); - } - newVF->Repaint();*/ - - Plot2d_Viewer::onCloneView( clonedVF, newVF ); -} - /*! create SPlot2d_ViewWindow */ diff --git a/src/SPlot2d/SPlot2d_ViewModel.h b/src/SPlot2d/SPlot2d_ViewModel.h index 7182def58..f12a8d601 100644 --- a/src/SPlot2d/SPlot2d_ViewModel.h +++ b/src/SPlot2d/SPlot2d_ViewModel.h @@ -75,9 +75,6 @@ public: SPlot2d_Curve* getCurveByIO( const Handle(SALOME_InteractiveObject)&, Plot2d_ViewFrame* = 0 ); Plot2d_ViewFrame* getActiveViewFrame(); Handle(SALOME_InteractiveObject) FindIObject( const char* Entry ); - -protected slots: - virtual void onCloneView( Plot2d_ViewFrame*, Plot2d_ViewFrame* ); }; -- 2.39.2