]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Unused code removed.
authoradv <adv@opencascade.com>
Thu, 20 Mar 2014 12:03:02 +0000 (12:03 +0000)
committeradv <adv@opencascade.com>
Thu, 20 Mar 2014 12:03:02 +0000 (12:03 +0000)
src/HYDROGUI/HYDROGUI_TranslateObstacleOp.cxx
src/HYDROGUI/HYDROGUI_TranslateObstacleOp.h

index c66a725cfd5307a3c82dbf1f12a045157a04793b..fe714aad218eeb1e577bf8b47ba1ecb6d5f3bf50 100644 (file)
@@ -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
index 2e63066a8519853ab73f744f47278ee6d7f63581..d2fa5e683f40d2af219e85c50533e3845a411e2b 100644 (file)
@@ -57,8 +57,6 @@ private:
   void                         createPreview();
   void                         erasePreview();
 
-  TopoDS_Shape                 getTranslatedShape() const;
-
 private:
   Handle(HYDROData_Obstacle)   myEditedObject;