mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +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:
@@ -609,17 +609,17 @@ void BRepOffsetAPI_MiddlePath::Build()
|
||||
if (E2.IsNull())
|
||||
E2 = TopoDS::Edge(myPaths((j<=NbPaths)? j : 1)(i-1));
|
||||
Standard_Real fpar1, lpar1, fpar2, lpar2;
|
||||
Standard_Real FirstPar1, LastPar1, FirstPar2, LastPar2;
|
||||
Standard_Real LastPar1, LastPar2;
|
||||
Handle(Geom2d_Curve) PCurve1 = BRep_Tool::CurveOnSurface(E1, theFace, fpar1, lpar1);
|
||||
Handle(Geom2d_Curve) PCurve2 = BRep_Tool::CurveOnSurface(E2, theFace, fpar2, lpar2);
|
||||
if (E1.Orientation() == TopAbs_FORWARD)
|
||||
{ FirstPar1 = fpar1; LastPar1 = lpar1; }
|
||||
{ LastPar1 = lpar1; }
|
||||
else
|
||||
{ FirstPar1 = lpar1; LastPar1 = fpar1; }
|
||||
{ LastPar1 = fpar1; }
|
||||
if (E2.Orientation() == TopAbs_FORWARD)
|
||||
{ FirstPar2 = fpar2; LastPar2 = lpar2; }
|
||||
{ LastPar2 = lpar2; }
|
||||
else
|
||||
{ FirstPar2 = lpar2; LastPar2 = fpar2; }
|
||||
{ LastPar2 = fpar2; }
|
||||
gp_Pnt2d FirstPnt2d = PCurve1->Value(LastPar1);
|
||||
gp_Pnt2d LastPnt2d = PCurve2->Value(LastPar2);
|
||||
Handle(Geom_Surface) theSurf = BRep_Tool::Surface(theFace);
|
||||
|
Reference in New Issue
Block a user