0024510: Remove unused local variables
[occt.git] / src / BOPTest / BOPTest_TolerCommands.cxx
old mode 100755 (executable)
new mode 100644 (file)
index 7fa5a50..b376112
@@ -1,21 +1,25 @@
-// File:       BOPTest_TolerCommands.cxx
-// Created:    10:45:01 2000
-// Author:     Peter KURNEV
-//             <pkv@irinox>
-
+// Created on: 2000-03-16
+// Copyright (c) 2000-2014 OPEN CASCADE SAS
+//
+// This file is part of Open CASCADE Technology software library.
+//
+// This library is free software; you can redistribute it and / or modify it
+// under the terms of the GNU Lesser General Public version 2.1 as published
+// by the Free Software Foundation, with special exception defined in the file
+// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
+// distribution for complete text of the license and disclaimer of any warranty.
+//
+// Alternatively, this file may be used under the terms of Open CASCADE
+// commercial license or contractual agreement.
 
 #include <BOPTest.ixx>
-//
 #include <stdio.h>
-//
 #include <TCollection_AsciiString.hxx>
 #include <TColStd_IndexedMapOfTransient.hxx>
-//
 #include <TopoDS_Shape.hxx>
 #include <TopoDS_Vertex.hxx>
-//
+#include <Draw.hxx>
 #include <DBRep.hxx>
-//
 #include <gp_Pnt2d.hxx>
 
 #include <Geom_Curve.hxx>
@@ -60,8 +64,8 @@ static
 //
 static 
   void ProcessVertex(const TopoDS_Vertex&,
-                    const TopTools_ListOfShape&,
-                    const TopTools_ListOfShape&);
+                     const TopTools_ListOfShape&,
+                     const TopTools_ListOfShape&);
 static
   void ProcessEdge(const TopoDS_Edge&, const Standard_Real);
 
@@ -114,7 +118,7 @@ Standard_Integer  btolx(Draw_Interpretor& di, Standard_Integer n,  const char**
   //
   Standard_Real aTolEMin=1.e-7;
   if (n==3) {
-    aTolEMin=atof(a[2]);
+    aTolEMin=Draw::Atof(a[2]);
   }
   //
   // Edge Tolerances
@@ -209,7 +213,7 @@ void ReduceVertexTolerance (const TopoDS_Shape& aS)
 void ProcessEdge(const TopoDS_Edge& aE, const Standard_Real aTolTreshold)
 {
   Standard_Integer i, aNb=23;
-  Standard_Real aTolE, aD2, aTolMax2, aT1, aT2, aT, dT;
+  Standard_Real aD2, aTolMax2, aT1, aT2, aT, dT;
   gp_Pnt aPC3D, aP3D;
   gp_Pnt2d aPC2D;
 
@@ -273,7 +277,6 @@ void ProcessEdge(const TopoDS_Edge& aE, const Standard_Real aTolTreshold)
     return;
   }
   //
-  aTolE =BRep_Tool::Tolerance(aE);
   //
   aTolMax2=sqrt(aTolMax2); 
   
@@ -292,7 +295,7 @@ void ProcessVertex(const TopoDS_Vertex& aV,
                   const TopTools_ListOfShape& aLE,
                   const TopTools_ListOfShape& aLF)
 {
-  Standard_Real aTol, aTol2, aD2, aTolMax2, aTolE, aParam;
+  Standard_Real aTol, aD2, aTolMax2, aTolE, aParam;
   gp_Pnt aPC3D;
   gp_Pnt2d aPC2D;
   TopAbs_Orientation anOrV;
@@ -308,7 +311,6 @@ void ProcessVertex(const TopoDS_Vertex& aV,
   Handle(BRep_TVertex)& TV = *((Handle(BRep_TVertex)*) &aV.TShape());
   const gp_Pnt& aPV3D = TV->Pnt();
   aTol =BRep_Tool::Tolerance(aV);
-  aTol2=aTol*aTol;
   //
   anIt.Initialize(aLE);
   for (; anIt.More(); anIt.Next()) {