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:
@@ -529,7 +529,7 @@ Standard_Real BRepCheck_Edge::Tolerance()
|
||||
|
||||
Standard_Real dist2, tol2, tolCal=0., prm;
|
||||
gp_Pnt center, othP;
|
||||
Standard_Integer i, imax;
|
||||
Standard_Integer i;
|
||||
for (i= 0; i< NCONTROL; i++) {
|
||||
prm = ((NCONTROL-1-i)*First + i*Last)/(NCONTROL-1);
|
||||
tol2=dist2=0.;
|
||||
@@ -541,7 +541,6 @@ Standard_Real BRepCheck_Edge::Tolerance()
|
||||
}
|
||||
if (tol2>tolCal) {
|
||||
tolCal=tol2;
|
||||
imax=i;
|
||||
}
|
||||
}
|
||||
// On prend 5% de marge car au dessus on crontrole severement
|
||||
|
Reference in New Issue
Block a user