mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0022922: Clean up warnings on uninitialized / unused variables
This commit is contained in:
committed by
bugmaster
parent
25289ec1e1
commit
6e6cd5d949
@@ -71,11 +71,7 @@ GccAna_Circ2d2TanOn::
|
||||
gp_Pnt2d center1(C1.Location());
|
||||
gp_Pnt2d center2(C2.Location());
|
||||
TColStd_Array1OfReal Radius(1,2);
|
||||
#ifdef DEB
|
||||
Standard_Real distance = center1.Distance(center2);
|
||||
#else
|
||||
center1.Distance(center2);
|
||||
#endif
|
||||
|
||||
Standard_Real dist1 = OnLine.Distance(center1);
|
||||
Standard_Real dist2 = OnLine.Distance(center2);
|
||||
Standard_Real d1 = dist1+R1;
|
||||
|
@@ -77,12 +77,7 @@
|
||||
gp_Dir2d dir(OnCirc.Location().XY()-Point2.XY());
|
||||
gp_Pnt2d pinterm(Point2.XY()+(distpc+Ron)*dir.XY());
|
||||
Standard_Real dist1 = L1.Distance(pinterm);
|
||||
if (Abs(dist1-distpc-Ron) > Tol) {
|
||||
#ifdef DEB
|
||||
gp_Pnt2d pinterm(Point2.XY()+(distpc-Ron)*dir.XY()); // Unused ! BUG ???
|
||||
Standard_Real dist1 = L1.Distance(pinterm); // Unused ! BUG ???
|
||||
#endif
|
||||
}
|
||||
|
||||
if (Abs(dist1-distpc+Ron) <= Tol) {
|
||||
dir = gp_Dir2d(-dirL1.Y(),dirL1.X());
|
||||
gp_Dir2d direc(originL1.XY()-pinterm.XY());
|
||||
|
@@ -70,11 +70,7 @@ GccAna_Circ2d2TanOn::
|
||||
TColStd_Array1OfReal Rradius(1,2);
|
||||
gp_Pnt2d center1(C1.Location());
|
||||
gp_Pnt2d center2(C2.Location());
|
||||
#ifdef DEB
|
||||
Standard_Real distance = center1.Distance(center2);
|
||||
#else
|
||||
center1.Distance(center2);
|
||||
#endif
|
||||
|
||||
Standard_Real R1 = C1.Radius();
|
||||
Standard_Real R2 = C2.Radius();
|
||||
|
||||
|
@@ -43,9 +43,6 @@ GccAna_Circ2d2TanOn::
|
||||
NbrSol = 0;
|
||||
|
||||
gp_Dir2d dirx(1.,0.);
|
||||
#ifdef DEB
|
||||
Standard_Real Tol = Abs(Tolerance);
|
||||
#endif
|
||||
if (!(Qualified1.IsEnclosed() ||
|
||||
Qualified1.IsOutside() || Qualified1.IsUnqualified()) ||
|
||||
!(Qualified2.IsEnclosed() ||
|
||||
|
@@ -53,9 +53,6 @@ GccAna_Circ2d2TanRad::
|
||||
{
|
||||
|
||||
gp_Dir2d dirx(1.0,0.0);
|
||||
#ifdef DEB
|
||||
Standard_Real Tol = Abs(Tolerance);
|
||||
#endif
|
||||
TColStd_Array1OfReal cote1(1,2);
|
||||
TColStd_Array1OfReal cote2(1,2);
|
||||
Standard_Integer nbrcote1=0;
|
||||
|
@@ -57,9 +57,6 @@ GccAna_Circ2d3Tan::
|
||||
TheSame2.Init(0);
|
||||
TheSame3.Init(0);
|
||||
gp_Dir2d dirx(1.0,0.0);
|
||||
#ifdef DEB
|
||||
Standard_Real Tol = Abs(Tolerance);
|
||||
#endif
|
||||
WellDone = Standard_False;
|
||||
NbrSol = 0;
|
||||
if (!(Qualified1.IsEnclosed() ||
|
||||
|
@@ -95,11 +95,7 @@ GccAna_Circ2d3Tan::
|
||||
gp_Pnt2d Center(Intp.Point(j).Value());
|
||||
Standard_Real dist1 = L1.Distance(Center);
|
||||
Standard_Real dist2 = Center.Distance(Point2);
|
||||
#ifdef DEB
|
||||
Standard_Real dist3 = Center.Distance(Point3);
|
||||
#else
|
||||
Center.Distance(Point3);
|
||||
#endif
|
||||
|
||||
Standard_Real Radius=0;
|
||||
Standard_Integer nbsol1 = 0;
|
||||
// Standard_Integer nbsol2 = 0;
|
||||
|
@@ -94,11 +94,6 @@ GccAna_Circ2dTanOnRad::
|
||||
cirsol(NbrSol)=gp_Circ2d(gp_Ax2d(Center,dirx),Radius);
|
||||
// =====================================================
|
||||
gp_Dir2d dc1(origin1.XY()-Center.XY());
|
||||
#ifdef DEB
|
||||
Standard_Real sign = dc1.Dot(normL1);
|
||||
#else
|
||||
dc1.Dot(normL1);
|
||||
#endif
|
||||
if (!Qualified1.IsUnqualified()) {
|
||||
qualifier1(NbrSol) = Qualified1.Qualifier();
|
||||
}
|
||||
|
Reference in New Issue
Block a user