mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-29 14:00:49 +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:
@@ -779,7 +779,6 @@ void Intf_InterferencePolygonPolyhedron::Intersect
|
||||
gp_XYZ segO=EndO.XYZ()-BegO.XYZ();
|
||||
segO.Normalize();
|
||||
Standard_Boolean NoIntersectionWithTriangle = Standard_False;
|
||||
Standard_Boolean PolygonCutsPlane = Standard_True;
|
||||
|
||||
Standard_Real param;
|
||||
t = dBegTri-dEndTri;
|
||||
@@ -799,7 +798,6 @@ void Intf_InterferencePolygonPolyhedron::Intersect
|
||||
NoIntersectionWithTriangle = Standard_False;
|
||||
}
|
||||
if (param<0. || param>1.) {
|
||||
PolygonCutsPlane = Standard_False;
|
||||
NoIntersectionWithTriangle = Standard_True;
|
||||
}
|
||||
}
|
||||
@@ -1061,7 +1059,6 @@ void Intf_InterferencePolygonPolyhedron::Intersect (const gp_Pnt& BegO,
|
||||
// Standard_Real dEndTri=(triNor*EndO.XYZ())-triDp; // Distance <EndO> plan
|
||||
|
||||
Standard_Boolean NoIntersectionWithTriangle = Standard_False;
|
||||
Standard_Boolean PolygonCutsPlane = Standard_True;
|
||||
|
||||
Standard_Real param;
|
||||
t = dBegTri-dEndTri;
|
||||
@@ -1081,7 +1078,6 @@ void Intf_InterferencePolygonPolyhedron::Intersect (const gp_Pnt& BegO,
|
||||
NoIntersectionWithTriangle = Standard_False;
|
||||
}
|
||||
if (param<0. || param>1.) {
|
||||
PolygonCutsPlane = Standard_False;
|
||||
NoIntersectionWithTriangle = Standard_True;
|
||||
}
|
||||
}
|
||||
|
@@ -743,8 +743,6 @@ Standard_Boolean Intf_InterferencePolyhedron::TangentZoneValue
|
||||
tOP[nou]= Intf_EXTERNAL;
|
||||
tTP[nou]= Intf_EXTERNAL;
|
||||
}
|
||||
Standard_Integer iOP[4];
|
||||
Standard_Integer iTP[4];
|
||||
|
||||
Standard_Integer nbpInt=0;
|
||||
Intf_SeqOfSectionPoint Tpi;
|
||||
@@ -759,8 +757,8 @@ Standard_Boolean Intf_InterferencePolyhedron::TangentZoneValue
|
||||
Intf_VERTEX, OI[nob], 0, 0.,
|
||||
Intf_VERTEX, TI[nou], 0, 0.,
|
||||
1.));
|
||||
tOP[nob]=Intf_VERTEX; iOP[nob]=nbpInt;
|
||||
tTP[nou]=Intf_VERTEX; iTP[nou]=nbpInt;
|
||||
tOP[nob]=Intf_VERTEX;
|
||||
tTP[nou]=Intf_VERTEX;
|
||||
nbpInt++;
|
||||
break;
|
||||
}
|
||||
@@ -773,7 +771,7 @@ Standard_Boolean Intf_InterferencePolyhedron::TangentZoneValue
|
||||
Intf_EDGE, Min(TI[nou], TI[nou2]),
|
||||
Max(TI[nou], TI[nou2]), par,
|
||||
1.));
|
||||
tOP[nob]=Intf_EDGE; iOP[nob]=nbpInt;
|
||||
tOP[nob]=Intf_EDGE;
|
||||
nbpInt++;
|
||||
break;
|
||||
}
|
||||
@@ -788,7 +786,7 @@ Standard_Boolean Intf_InterferencePolyhedron::TangentZoneValue
|
||||
Intf_VERTEX, OI[nob], 0, 0.,
|
||||
Intf_FACE, Tri2, 0, 0.,
|
||||
1.));
|
||||
tOP[nob]=Intf_FACE; iOP[nob]=nbpInt;
|
||||
tOP[nob]=Intf_FACE;
|
||||
nbpInt++;
|
||||
}
|
||||
}
|
||||
@@ -811,7 +809,7 @@ Standard_Boolean Intf_InterferencePolyhedron::TangentZoneValue
|
||||
Intf_EDGE, Min(OI[nob], OI[nob2]),
|
||||
Max(OI[nob], OI[nob2]), par,
|
||||
Intf_VERTEX, TI[nou], 0, 0., 1.));
|
||||
tTP[nou]=Intf_EDGE;iTP[nou]=nbpInt;
|
||||
tTP[nou]=Intf_EDGE;
|
||||
nbpInt++;
|
||||
break;
|
||||
}
|
||||
@@ -826,7 +824,7 @@ Standard_Boolean Intf_InterferencePolyhedron::TangentZoneValue
|
||||
Intf_FACE, Tri1, 0, 0.,
|
||||
Intf_VERTEX, TI[nou], 0, 0.,
|
||||
1.));
|
||||
tTP[nou]=Intf_FACE; iTP[nou]=nbpInt;
|
||||
tTP[nou]=Intf_FACE;
|
||||
nbpInt++;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user