mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-03 14:10:33 +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:
@@ -420,7 +420,6 @@ void IntWalk_PWalking::Perform(const TColStd_Array1OfReal& ParDep,
|
||||
//xf
|
||||
Standard_Integer i, NbPasOKConseq;
|
||||
Standard_Real UFirst1, VFirst1, ULast1, VLast1, UFirst2, VFirst2, ULast2, VLast2;
|
||||
Standard_Real pasMaxSV[4], aTmp;
|
||||
TColStd_Array1OfReal Param(1,4);
|
||||
IntImp_ConstIsoparametric ChoixIso;
|
||||
//xt
|
||||
@@ -468,13 +467,12 @@ void IntWalk_PWalking::Perform(const TColStd_Array1OfReal& ParDep,
|
||||
line = new IntSurf_LineOn2S ();
|
||||
//
|
||||
for (i=1; i<=4; ++i) {
|
||||
aTmp=ParDep(i);
|
||||
Param(i)=ParDep(i);
|
||||
}
|
||||
//-- reproduce steps uv connected to surfaces Caro1 and Caro2
|
||||
//-- pasuv[] and pasSav[] are modified during the marching
|
||||
for(i = 0; i < 4; ++i) {
|
||||
pasMaxSV[i] = pasSav[i] = pasuv[i] = pasInit[i];
|
||||
pasSav[i] = pasuv[i] = pasInit[i];
|
||||
}
|
||||
|
||||
//-- calculate the first solution point
|
||||
|
Reference in New Issue
Block a user