From: adv Date: Thu, 20 Mar 2014 12:03:02 +0000 (+0000) Subject: Unused code removed. X-Git-Tag: BR_hydro_v1_0_1~38 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=afb0bc62197e8332673faec104a9311061c346c2;p=modules%2Fhydro.git Unused code removed. --- diff --git a/src/HYDROGUI/HYDROGUI_TranslateObstacleOp.cxx b/src/HYDROGUI/HYDROGUI_TranslateObstacleOp.cxx index c66a725c..fe714aad 100644 --- a/src/HYDROGUI/HYDROGUI_TranslateObstacleOp.cxx +++ b/src/HYDROGUI/HYDROGUI_TranslateObstacleOp.cxx @@ -184,25 +184,3 @@ void HYDROGUI_TranslateObstacleOp::onArgumentsChanged() createPreview(); } -TopoDS_Shape HYDROGUI_TranslateObstacleOp::getTranslatedShape() const -{ - TopoDS_Shape aTranslatedShape; - - HYDROGUI_TranslateObstacleDlg* aPanel = (HYDROGUI_TranslateObstacleDlg*)inputPanel(); - if ( aPanel && !myEditedObject.IsNull() ) { - double aDx = aPanel->getDx(); - double aDy = aPanel->getDy(); - double aDz = aPanel->getDz(); - - TopoDS_Shape aShape = myEditedObject->GetShape3D(); - gp_Trsf aTrsf; - gp_Vec aVec( aDx, aDy, aDz ); - aTrsf.SetTranslation(aVec); - TopLoc_Location aLocOrig = aShape.Location(); - gp_Trsf aTrsfOrig = aLocOrig.Transformation(); - TopLoc_Location aLocRes( aTrsf * aTrsfOrig ); - aTranslatedShape = aShape.Located( aLocRes ); - } - - return aTranslatedShape; -} \ No newline at end of file diff --git a/src/HYDROGUI/HYDROGUI_TranslateObstacleOp.h b/src/HYDROGUI/HYDROGUI_TranslateObstacleOp.h index 2e63066a..d2fa5e68 100644 --- a/src/HYDROGUI/HYDROGUI_TranslateObstacleOp.h +++ b/src/HYDROGUI/HYDROGUI_TranslateObstacleOp.h @@ -57,8 +57,6 @@ private: void createPreview(); void erasePreview(); - TopoDS_Shape getTranslatedShape() const; - private: Handle(HYDROData_Obstacle) myEditedObject;