]> OCCT Git - occt.git/commitdiff
0031977: Modeling Algorithms - useless static variable in BRepFill_OffsetWire::Init...
authorabv <abv@opencascade.com>
Sun, 6 Dec 2020 16:20:47 +0000 (19:20 +0300)
committerbugmaster <bugmaster@opencascade.com>
Tue, 8 Dec 2020 16:49:20 +0000 (19:49 +0300)
Removed useless "static" before local variable and some commented code

src/BRepFill/BRepFill_OffsetWire.cxx

index 7e488179882260b3356d162e761d8b874d139a5f..362092bb040aa8ac02a34f79855f83deb299be96 100644 (file)
@@ -373,34 +373,25 @@ void BRepFill_OffsetWire::Init(const TopoDS_Face&     Spine,
   
   myMap.Clear();
   myMapSpine.Clear();
+
   //------------------------------------------------------------------
   // cut the spine for bissectors.
   //------------------------------------------------------------------
-  //  Modified by Sergey KHROMOV - Tue Nov 26 17:39:03 2002 Begin
-  static BRepMAT2d_Explorer Exp;
-
+  BRepMAT2d_Explorer Exp;
   Exp.Perform(mySpine);
-
-  //  TopoDS_Face anOldSpine = mySpine;
-
   mySpine = TopoDS::Face(Exp.ModifiedShape(mySpine));
   PrepareSpine  ();
 
-  //  Modified by Sergey KHROMOV - Tue Nov 26 17:39:03 2002 End
   TopoDS_Shape aShape;
   BRepFill_IndexedDataMapOfOrientedShapeListOfShape aMap;
   Standard_Boolean Done;
   if (KPartCircle(myWorkSpine,1.,myIsOpenResult,0.,aShape,aMap,Done)) return;
 
-
   //-----------------------------------------------------
   // Calculate the map of bissectors to the left.  
   // and Links Topology -> base elements of the map.
   //-----------------------------------------------------
   
-  //  Modified by Sergey KHROMOV - Tue Nov 26 17:39:03 2002 Begin
-  //   static BRepMAT2d_Explorer Exp;
-  //  Modified by Sergey KHROMOV - Tue Nov 26 17:39:03 2002 End
   Exp.Perform(myWorkSpine);
   myBilo.Compute(Exp, 1 ,MAT_Left, myJoinType, myIsOpenResult);
   myLink.Perform(Exp,myBilo);