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:
@@ -74,10 +74,6 @@ static Standard_Real tapp_angle = 1.e-2;
|
||||
static GeomAbs_Shape blend_cont = GeomAbs_C1;
|
||||
|
||||
static BRepFilletAPI_MakeFillet* Rakk = 0;
|
||||
#ifdef DEB
|
||||
static BRepFilletAPI_MakeFillet* Rake = 0;
|
||||
static char name[100];
|
||||
#endif
|
||||
|
||||
|
||||
static void printtolblend(Draw_Interpretor& di)
|
||||
|
@@ -2582,7 +2582,6 @@ Handle( Poly_Triangulation ) CalculationOfSphere( double X , double Y , double Z
|
||||
|
||||
int i, j;
|
||||
int jStart, jEnd, numOffset;
|
||||
int numPts, numPolys;
|
||||
double x[3], n[3], deltaPhi, deltaTheta, phi, theta, radius;
|
||||
double startTheta, endTheta, startPhi, endPhi;
|
||||
int base, numPoles=0, thetaResolution, phiResolution;
|
||||
@@ -2612,9 +2611,6 @@ Handle( Poly_Triangulation ) CalculationOfSphere( double X , double Y , double Z
|
||||
localStartTheta = localStartTheta + (double)(start) * deltaTheta;
|
||||
localThetaResolution = end - start;
|
||||
|
||||
numPts = mPhiResolution * localThetaResolution + 2;
|
||||
numPolys = mPhiResolution * 2 * localThetaResolution;
|
||||
|
||||
// Create north pole if needed
|
||||
int number_point = 0;
|
||||
int number_pointArray = 0;
|
||||
|
@@ -1454,10 +1454,6 @@ static int VLenghtDimension(Draw_Interpretor& di, Standard_Integer argc, const c
|
||||
// On recupere les deux vertexes extremites de l'edge de face B
|
||||
TopoDS_Vertex Vb,Vc;
|
||||
TopExp::Vertices(EdFromB,Vb,Vc);
|
||||
#ifdef DEB
|
||||
gp_Pnt B=
|
||||
#endif
|
||||
BRep_Tool::Pnt(Vb);
|
||||
gp_Pnt C=BRep_Tool::Pnt(Vc);
|
||||
|
||||
// On projette le point B sur la Face car il
|
||||
|
Reference in New Issue
Block a user