mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0024510: Remove unused local variables
When warnings are enabled, compilers report lots of occurrences of unused local variables, which makes it harder to find other meaningful warnings. This commit does not fix all unused local variables. Fix new type conversion warning Code cleaned to avoid MSVC compiler warnings on unused function arguments. Several useless pieces of code are removed. Changes in IntTools_EdgeFace.cxx, Blend_Walking_1.gxx, Bnd_BoundSortBox.cxx, ProjLib_ProjectedCurve.cxx are reverted (separated to specific issue for more in-depth analysis).
This commit is contained in:
@@ -908,20 +908,16 @@ static Standard_Boolean Filling(const TopoDS_Shape& EF,
|
||||
f2, l2, C3);
|
||||
C2 = C3;
|
||||
|
||||
Standard_Boolean pointu_f, pointu_l;
|
||||
// P1 = BT.Pnt(Vf);
|
||||
P1 = BRep_Tool::Pnt(Vf);
|
||||
// P2 = BT.Pnt(V1);
|
||||
P2 = BRep_Tool::Pnt(V1);
|
||||
// pointu_f = Vf.IsSame(V1) || (P1.Distance(P2) < BT.Tolerance(Vf));
|
||||
pointu_f = Vf.IsSame(V1) || (P1.Distance(P2) < BRep_Tool::Tolerance(Vf));
|
||||
// P1 = BT.Pnt(Vl);
|
||||
P1 = BRep_Tool::Pnt(Vl);
|
||||
// P2 = BT.Pnt(V2);
|
||||
P2 = BRep_Tool::Pnt(V2);
|
||||
// pointu_l = Vl.IsSame(V2) || (P1.Distance(P2) < BT.Tolerance(Vl));
|
||||
pointu_l = Vl.IsSame(V2) || (P1.Distance(P2) < BRep_Tool::Tolerance(Vl));
|
||||
|
||||
|
||||
P2d.SetCoord(0.,f1);
|
||||
L = new (Geom2d_Line) (P2d, gp::DX2d());
|
||||
@@ -1703,7 +1699,9 @@ BRepFill_Sweep::BRepFill_Sweep(const Handle(BRepFill_SectionLaw)& Section,
|
||||
LastShape = Last;
|
||||
|
||||
// It is necessary to check the SameRange on its (PRO13551)
|
||||
#ifdef DEB
|
||||
Standard_Boolean issame = Standard_True;
|
||||
#endif
|
||||
BRep_Builder B;
|
||||
BRepTools_WireExplorer wexp;
|
||||
if (!FirstShape.IsNull()) {
|
||||
@@ -1711,7 +1709,9 @@ BRepFill_Sweep::BRepFill_Sweep(const Handle(BRepFill_SectionLaw)& Section,
|
||||
if (!BRepLib::CheckSameRange(wexp.Current())) {
|
||||
B.SameRange(wexp.Current(), Standard_False);
|
||||
B.SameParameter(wexp.Current(), Standard_False);
|
||||
#ifdef DEB
|
||||
issame = Standard_False;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1721,7 +1721,9 @@ BRepFill_Sweep::BRepFill_Sweep(const Handle(BRepFill_SectionLaw)& Section,
|
||||
if (!BRepLib::CheckSameRange(wexp.Current())) {
|
||||
B.SameRange(wexp.Current(), Standard_False);
|
||||
B.SameParameter(wexp.Current(), Standard_False);
|
||||
#ifdef DEB
|
||||
issame = Standard_False;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user