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:
@@ -112,7 +112,6 @@ void math_Powell::Perform(math_MultipleVarFunction& F,
|
||||
|
||||
|
||||
Done = Standard_False;
|
||||
Standard_Boolean Ok;
|
||||
Standard_Integer i, ibig, j;
|
||||
Standard_Real t, fptt, del;
|
||||
Standard_Integer n = TheLocation.Length();
|
||||
@@ -130,12 +129,12 @@ void math_Powell::Perform(math_MultipleVarFunction& F,
|
||||
|
||||
|
||||
for(Iter = 1; Iter<= Itermax; Iter++) {
|
||||
Ok = F.Value(TheLocation, PreviousMinimum);
|
||||
F.Value(TheLocation, PreviousMinimum);
|
||||
ibig = 0;
|
||||
del = 0.0;
|
||||
for (i = 1; i <= n; i++){
|
||||
for(j =1; j<= n; j++) xit(j) = TheDirections(j,i);
|
||||
Ok = F.Value(TheLocation, fptt);
|
||||
F.Value(TheLocation, fptt);
|
||||
Standard_Boolean IsGood = MinimizeDirection(TheLocation, xit,
|
||||
TheMinimum, F_Dir);
|
||||
|
||||
@@ -171,7 +170,7 @@ void math_Powell::Perform(math_MultipleVarFunction& F,
|
||||
|
||||
// Valeur de la fonction au point extrapole:
|
||||
|
||||
Ok = F.Value(ptt, fptt);
|
||||
F.Value(ptt, fptt);
|
||||
|
||||
if (fptt < PreviousMinimum) {
|
||||
t = 2.0 *(PreviousMinimum -2.0*TheMinimum +fptt)*
|
||||
|
Reference in New Issue
Block a user