mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-08 14:17:06 +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:
@@ -581,13 +581,11 @@ void IntAna_IntQuadQuad::Perform(const gp_Cone& Cone,
|
||||
const Standard_Real)
|
||||
{
|
||||
//
|
||||
Standard_Boolean UN_SEUL_Z_PAR_THETA, DEUX_Z_PAR_THETA,
|
||||
Z_POSITIF, Z_INDIFFERENT, Z_NEGATIF;
|
||||
Standard_Boolean UN_SEUL_Z_PAR_THETA,
|
||||
Z_POSITIF, Z_NEGATIF;
|
||||
//
|
||||
UN_SEUL_Z_PAR_THETA=Standard_False;
|
||||
DEUX_Z_PAR_THETA=Standard_True;
|
||||
Z_POSITIF=Standard_True;
|
||||
Z_INDIFFERENT=Standard_True;
|
||||
Z_NEGATIF=Standard_False;
|
||||
//
|
||||
Standard_Integer i;
|
||||
|
@@ -873,9 +873,8 @@ gp_Ax2 DirToAx2(const gp_Pnt& P,const gp_Dir& D)
|
||||
Standard_Real RmR, RmR_Relative;
|
||||
RmR=(R1>R2)? (R1-R2) : (R2-R1);
|
||||
{
|
||||
Standard_Real Rmax, Rmin;
|
||||
Standard_Real Rmax;
|
||||
Rmax=(R1>R2)? R1 : R2;
|
||||
Rmin=(R1>R2)? R2 : R1;
|
||||
RmR_Relative=RmR/Rmax;
|
||||
}
|
||||
|
||||
|
@@ -130,20 +130,8 @@ void IntAna_Quadric::NewCoefficients( Standard_Real& _CXX,Standard_Real& _CYY,St
|
||||
// = X DirX + Y DirY + Z DirZ + Loc
|
||||
|
||||
Standard_Real Cxx,Cyy,Czz,Cxy,Cxz,Cyz,Cx,Cy,Cz,Ccte;
|
||||
|
||||
|
||||
#ifdef DEB
|
||||
gp_Dir DirX = Axis.XDirection();
|
||||
gp_Dir DirY = Axis.YDirection();
|
||||
gp_Dir DirZ = Axis.Direction();
|
||||
#else
|
||||
Axis.XDirection();
|
||||
Axis.YDirection();
|
||||
Axis.Direction();
|
||||
#endif
|
||||
|
||||
gp_Trsf Trans;
|
||||
|
||||
Trans.SetTransformation(Axis);
|
||||
Trans.Invert();
|
||||
t11=Trans.Value(1,1); t12=Trans.Value(1,2); t13=Trans.Value(1,3); t14=Trans.Value(1,4);
|
||||
|
Reference in New Issue
Block a user