mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0023132: Suspicious code snippets
1) Warning in Aspect.cxx couldn't be reproduced 2) Description of changes: added 'return' statements into ReadStep(...) functions of RWStepBasic_* classes. 3) BRepFill_OffsetWire.cxx - removed dead code; 4) IFSelect_WorkSession.cxx - swapped arguments; 5) TopOpeBRep_ShapeIntersector2d.cxx - removed 'brake' statement and changed loop to if-statement because of void TopOpeBRep_ShapeIntersector2d::FindFFIntersection() function's call features. 6) V2d_RectangularGraphicGrid.cxx - left constants instead of functions beacuse of faster perfomance. 7) Commented unreachable code in files GeomFill_LocationGuide.cxx and TopOpeBRepTool_mkTondgE.cxx
This commit is contained in:
@@ -1619,35 +1619,6 @@ Standard_Integer CutEdge (const TopoDS_Edge& E,
|
||||
if (CT2d->BasisCurve()->IsKind(STANDARD_TYPE(Geom2d_Circle)) &&
|
||||
( Abs(f-l) >= M_PI) ) {
|
||||
return 0;
|
||||
//---------------------------
|
||||
// Cut closed circle.
|
||||
//---------------------------
|
||||
Standard_Real m = (f + l)*0.5;
|
||||
// Modified by Sergey KHROMOV - Wed Mar 6 17:37:28 2002 Begin
|
||||
gp_Pnt P = aC->Value(m);
|
||||
|
||||
VL = BRepLib_MakeVertex(P);
|
||||
B.UpdateVertex(VL, aTol);
|
||||
// Modified by Sergey KHROMOV - Wed Mar 6 17:37:30 2002 End
|
||||
TopoDS_Shape aLocalShape = E.EmptyCopied();
|
||||
TopoDS_Edge FE = TopoDS::Edge(aLocalShape);
|
||||
TopoDS_Edge LE = TopoDS::Edge(aLocalShape);
|
||||
// TopoDS_Edge FE = TopoDS::Edge(E.EmptyCopied());
|
||||
// TopoDS_Edge LE = TopoDS::Edge(E.EmptyCopied());
|
||||
FE.Orientation(TopAbs_FORWARD);
|
||||
LE.Orientation(TopAbs_FORWARD);
|
||||
B.Add (FE,V1);
|
||||
B.Add (FE,VL.Oriented(TopAbs_REVERSED));
|
||||
B.Range(FE, f, m);
|
||||
B.Add (LE,V2);
|
||||
B.Add (LE,VL.Oriented(TopAbs_FORWARD));
|
||||
B.Range(LE, m, l);
|
||||
Cuts.Append(FE.Oriented(E.Orientation()));
|
||||
Cuts.Append(LE.Oriented(E.Orientation()));
|
||||
//--------
|
||||
// Return.
|
||||
//--------
|
||||
return 2;
|
||||
}
|
||||
|
||||
//-------------------------
|
||||
|
Reference in New Issue
Block a user