1
0
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:
Denis Barbier
2014-01-09 12:20:06 +04:00
committed by bugmaster
parent b467a87036
commit 96a95605cd
230 changed files with 455 additions and 1286 deletions

View File

@@ -270,8 +270,6 @@ static Standard_Integer nurbsconvert(Draw_Interpretor& di,Standard_Integer n,con
static Standard_Integer mkedgecurve (Draw_Interpretor& ,Standard_Integer n,const char** a)
{
Standard_Boolean CurveDone ;
if (n < 3) return 1;
Standard_Real Tolerance = Draw::Atof(a[2]) ;
@@ -279,7 +277,6 @@ static Standard_Integer mkedgecurve (Draw_Interpretor& ,Standard_Integer n,const
if (S.IsNull()) return 1;
CurveDone =
BRepLib::BuildCurves3d(S,
Tolerance) ;
return 0 ;

View File

@@ -946,7 +946,6 @@ static Standard_Integer bsplineprof(Draw_Interpretor& di,
Standard_Boolean face = Standard_True;
Standard_Boolean close = Standard_True;
// Standard_Boolean first = Standard_True;
Standard_Boolean stayfirst = Standard_False;
Standard_Boolean isplanar = Standard_True;
Standard_Real length ;
TopoDS_Shape S;
@@ -976,7 +975,6 @@ static Standard_Integer bsplineprof(Draw_Interpretor& di,
else
P = Plane->Pln();
}
stayfirst = Standard_True;
i += 1 ;
break;