mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +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:
@@ -372,7 +372,7 @@ void IntPolyh_MaillageAffinage::FillArrayOfPnt
|
||||
Standard_Boolean bDegI, bDeg;
|
||||
Standard_Integer aNbU, aNbV, iCnt, i, j;
|
||||
Standard_Integer aID1, aID2, aJD1, aJD2;
|
||||
Standard_Real Tol, resol, u0, v0, u1, v1, aU, aV, aMag;
|
||||
Standard_Real Tol, resol, aU, aV, aMag;
|
||||
Standard_Real aX, aY, aZ;
|
||||
gp_Pnt aP;
|
||||
gp_Vec aDU, aDV, aNorm;
|
||||
@@ -384,10 +384,6 @@ void IntPolyh_MaillageAffinage::FillArrayOfPnt
|
||||
IntPolyh_ArrayOfPoints &TPoints=(SurfID==1)? TPoints1:TPoints2;
|
||||
//
|
||||
resol = gp::Resolution();
|
||||
u0 = Upars(1);
|
||||
v0 = Vpars(1);
|
||||
u1 = Upars(aNbU);
|
||||
v1 = Vpars(aNbV);
|
||||
//
|
||||
IntCurveSurface_ThePolyhedronOfHInter polyhedron(aS, Upars, Vpars);
|
||||
Tol=polyhedron.DeflectionOverEstimation();
|
||||
|
Reference in New Issue
Block a user