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:
@@ -955,9 +955,8 @@ private:
|
||||
Standard_ConstructionError::Raise("GeomConvert Concatenation Error") ;
|
||||
Curve2=C.BSplineCurve();
|
||||
}
|
||||
Standard_Boolean rm;
|
||||
Curve2->SetPeriodic();
|
||||
rm=Curve2->RemoveKnot(Curve2->LastUKnotIndex(),
|
||||
Curve2->RemoveKnot(Curve2->LastUKnotIndex(),
|
||||
Curve2->Multiplicity(Curve2->LastUKnotIndex())-1,
|
||||
Precision::Confusion());
|
||||
ArrayOfConcatenated->SetValue(0,Curve2);
|
||||
@@ -1192,9 +1191,8 @@ void GeomConvert::ConcatC1(TColGeom_Array1OfBSplineCurve& ArrayOfCurv
|
||||
Curve2=C.BSplineCurve();
|
||||
}
|
||||
}
|
||||
Standard_Boolean rm;
|
||||
Curve2->SetPeriodic(); //only one C1 curve
|
||||
rm=Curve2->RemoveKnot(Curve2->LastUKnotIndex(),
|
||||
Curve2->RemoveKnot(Curve2->LastUKnotIndex(),
|
||||
Curve2->Multiplicity(Curve2->LastUKnotIndex())-1,
|
||||
Precision::Confusion());
|
||||
ArrayOfConcatenated->SetValue(0,Curve2);
|
||||
|
@@ -765,10 +765,8 @@ Handle(BSplineSurface) GeomConvert::SplitBSplineSurface
|
||||
Weights.Init(1.);
|
||||
if ( C->IsRational()) C->Weights(Weights);
|
||||
|
||||
Standard_Integer nbUSpans;
|
||||
Standard_Real AlfaU;
|
||||
NbUKnots = 4;
|
||||
nbUSpans = 3;
|
||||
AlfaU = M_PI / 3.;
|
||||
NbUPoles = 6;
|
||||
|
||||
|
Reference in New Issue
Block a user