0024510: Remove unused local variables
[occt.git] / src / BRepFill / BRepFill_TrimSurfaceTool.cxx
old mode 100755 (executable)
new mode 100644 (file)
index 0e3ce9b..3f10f88
@@ -1,8 +1,18 @@
-// File:       BRepFill_TrimSurfaceTool.cxx
-// Created:    Fri Oct 21 14:56:32 1994
-// Author:     Bruno DUMORTIER
-//             <dub@fuegox>
-
+// Created on: 1994-10-21
+// Created by: Bruno DUMORTIER
+// Copyright (c) 1994-1999 Matra Datavision
+// Copyright (c) 1999-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 <stdio.h>
 
@@ -148,11 +158,7 @@ static Standard_Real EvalPhase(const TopoDS_Edge& Edge,
 {
   gp_Pnt2d PE1,PE2,PF1,PF2;
   Standard_Real VDeg;
-#ifndef DEB
   Standard_Real V = 0.;
-#else
-  Standard_Real V;
-#endif
   BRep_Tool::UVPoints(Edge,Face,PE1,PE2);
   VDeg = PE1.Y();
   TopExp_Explorer Exp(Face,TopAbs_EDGE);
@@ -166,7 +172,7 @@ static Standard_Real EvalPhase(const TopoDS_Edge& Edge,
   gp_Pnt P = GAS.Value(0., V);
   
   if ( gp_Vec(Axis.Location(), P).Dot(Axis.XDirection()) < 0.) 
-    return PI;
+    return M_PI;
   else
     return 0.;
 }
@@ -339,7 +345,7 @@ static void EvalParameters(const TopoDS_Edge&          Edge,
     case GeomAbs_Cone: {
       //----------------------------------------------------------
       // if myFace1 is not at the same side of the apex as the point
-      // of parameter 0 0 on the cone => phase = PI.
+      // of parameter 0 0 on the cone => phase = M_PI.
       //----------------------------------------------------------
       Axis = GAS.Cone().Position(); 
       Phase = EvalPhase(Edge,Face,GAS,Axis);
@@ -352,7 +358,7 @@ static void EvalParameters(const TopoDS_Edge&          Edge,
     case GeomAbs_SurfaceOfRevolution: {      
       //----------------------------------------------------------
       // if myFace1 is not at the same side of the apex as the point
-      // of parameter 0 0 on the cone => phase = PI.
+      // of parameter 0 0 on the cone => phase = M_PI.
       //----------------------------------------------------------
       Handle(Geom_SurfaceOfRevolution) GSRev = 
        Handle(Geom_SurfaceOfRevolution)::DownCast(GS);
@@ -373,7 +379,7 @@ static void EvalParameters(const TopoDS_Edge&          Edge,
     Standard_Real U = Axis.XDirection().
       AngleWithRef(D1,Axis.XDirection()^Axis.YDirection());
     U += Phase;
-    if ( U < 0.) U += 2*PI;
+    if ( U < 0.) U += 2*M_PI;
 
     P = gp_Pnt(Bis->FirstParameter(), U, 0.);
     Seq.Append(P);
@@ -491,9 +497,6 @@ void BRepFill_TrimSurfaceTool::Project
        Handle(Geom2d_Curve)& PCurve2,
        GeomAbs_Shape&        Cont) const 
 {
-  Standard_Integer Deg1, Deg2;
-  Deg1 = Deg2 = 8;
-
   Handle(Geom2d_TrimmedCurve) CT = 
     new Geom2d_TrimmedCurve(myBis,U1,U2);
   BRepFill_MultiLine ML(myFace1,myFace2,