1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-18 14:27:39 +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

@@ -58,8 +58,6 @@ void IntImpParGen_Intersector::And_Domaine_Objet1_Intersections(const ImpTool& T
NbResultats=0;
for(Standard_Integer i=1; i<=Nb_Bornes_Intersection; i+=2) {
Standard_Boolean aReverse=Standard_False;
Standard_Real param1=Inter1.Value(i);
Standard_Real param2=Inter1.Value(i+1);
@@ -70,7 +68,6 @@ void IntImpParGen_Intersector::And_Domaine_Objet1_Intersections(const ImpTool& T
Standard_Real t=param1; param1=param2; param2=t;
indice_1=i+1;
indice_2=i;
aReverse=Standard_True;
}
gp_Pnt2d Pt1=TheImpTool.Value(param1);
@@ -78,10 +75,8 @@ void IntImpParGen_Intersector::And_Domaine_Objet1_Intersections(const ImpTool& T
gp_Pnt2d Pt;
Standard_Boolean IsOnTheImpCurveDomain1=Standard_True;
Standard_Boolean IsOnABoundary1=Standard_False;
Standard_Boolean IsOnTheImpCurveDomain2=Standard_True;
Standard_Boolean IsOnABoundary2=Standard_False;
//--------------------------------------------------------------------
if(TheImpCurveDomain.HasFirstPoint()) {
if(param1<TheImpCurveDomain.FirstParameter()) {
@@ -89,7 +84,6 @@ void IntImpParGen_Intersector::And_Domaine_Objet1_Intersections(const ImpTool& T
> TheImpCurveDomain.FirstTolerance()) {
IsOnTheImpCurveDomain1=Standard_False;
}
else { IsOnABoundary1=Standard_True; }
}
}
if(IsOnTheImpCurveDomain1 && TheImpCurveDomain.HasLastPoint()) {
@@ -98,7 +92,6 @@ void IntImpParGen_Intersector::And_Domaine_Objet1_Intersections(const ImpTool& T
> TheImpCurveDomain.FirstTolerance()) {
IsOnTheImpCurveDomain1=Standard_False;
}
else { IsOnABoundary1=Standard_True; }
}
}
//--------------------------------------------------------------------
@@ -108,7 +101,6 @@ void IntImpParGen_Intersector::And_Domaine_Objet1_Intersections(const ImpTool& T
> TheImpCurveDomain.FirstTolerance()) {
IsOnTheImpCurveDomain2=Standard_False;
}
else { IsOnABoundary2=Standard_True; }
}
}
if(IsOnTheImpCurveDomain2 && TheImpCurveDomain.HasLastPoint()) {
@@ -117,7 +109,6 @@ void IntImpParGen_Intersector::And_Domaine_Objet1_Intersections(const ImpTool& T
> TheImpCurveDomain.FirstTolerance()) {
IsOnTheImpCurveDomain2=Standard_False;
}
else { IsOnABoundary2=Standard_True; }
}
}