0024510: Remove unused local variables
[occt.git] / src / BiTgte / BiTgte_Blend.cxx
old mode 100755 (executable)
new mode 100644 (file)
index 1e67b0b..36c4125
@@ -1,23 +1,18 @@
 // Created on: 1996-12-16
 // Created by: Bruno DUMORTIER
 // Copyright (c) 1996-1999 Matra Datavision
-// Copyright (c) 1999-2012 OPEN CASCADE SAS
+// Copyright (c) 1999-2014 OPEN CASCADE SAS
 //
-// The content of this file is subject to the Open CASCADE Technology Public
-// License Version 6.5 (the "License"). You may not use the content of this file
-// except in compliance with the License. Please obtain a copy of the License
-// at http://www.opencascade.org and read it completely before using this file.
+// This file is part of Open CASCADE Technology software library.
 //
-// The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
-// main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
+// 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.
 //
-// The Original Code and all software distributed under the License is
-// distributed on an "AS IS" basis, without warranty of any kind, and the
-// Initial Developer hereby disclaims all such warranties, including without
-// limitation, any warranties of merchantability, fitness for a particular
-// purpose or non-infringement. Please see the License for the specific terms
-// and conditions governing the rights and limitations under the License.
-
+// Alternatively, this file may be used under the terms of Open CASCADE
+// commercial license or contractual agreement.
 
 #include <stdio.h>
 
 #include <OSD_Chronometer.hxx>
 // variables for performance 
 Standard_Real t_mkcurve;
-//Standard_IMPORT extern void ChFi3d_InitChron(OSD_Chronometer& ch);
-Standard_EXPORT void ChFi3d_InitChron(OSD_Chronometer& ch);
-//Standard_IMPORT extern void ChFi3d_ResultChron(OSD_Chronometer & ch,
-Standard_IMPORT void ChFi3d_ResultChron(OSD_Chronometer & ch,
-                                       Standard_Real&    time);
+extern void ChFi3d_InitChron(OSD_Chronometer& ch);
+extern void ChFi3d_ResultChron(OSD_Chronometer & ch, Standard_Real&    time);
 #ifdef DRAW
 static Standard_Boolean Affich = Standard_False;
 static char name[100];
@@ -237,8 +229,6 @@ static void KPartCurve3d(TopoDS_Edge           Edge,
   TopLoc_Location Loc;
   Standard_Real Tol = Precision::Confusion();
 
-  Standard_Boolean IsComputed = Standard_False;
-
   // Seach only isos on analytical surfaces.
   Geom2dAdaptor_Curve C(Curve);
   GeomAdaptor_Surface S(Surf);
@@ -269,7 +259,6 @@ static void KPartCurve3d(TopoDS_Edge           Edge,
              Circle->Reverse();
            TheBuilder.UpdateEdge(Edge, Circle, Loc, Tol);
          }
-         IsComputed = Standard_True;
        }
        else if ( STy == GeomAbs_Cylinder) {
          gp_Cylinder Cyl  = S.Cylinder();
@@ -285,7 +274,6 @@ static void KPartCurve3d(TopoDS_Edge           Edge,
          if ( D.IsOpposite(gp::DX2d(),Precision::Angular())) 
            Circle->Reverse();
          TheBuilder.UpdateEdge(Edge, Circle, Loc, Tol);
-         IsComputed = Standard_True;
        }
        else if ( STy == GeomAbs_Cone) {
          gp_Cone  Cone = S.Cone();
@@ -302,7 +290,6 @@ static void KPartCurve3d(TopoDS_Edge           Edge,
          if ( D.IsOpposite(gp::DX2d(),Precision::Angular())) 
            Circle->Reverse();
          TheBuilder.UpdateEdge(Edge, Circle, Loc, Tol);
-         IsComputed = Standard_True;
        }
        else if ( STy == GeomAbs_Torus) {
          gp_Torus Tore = S.Torus();
@@ -319,7 +306,6 @@ static void KPartCurve3d(TopoDS_Edge           Edge,
          if ( D.IsOpposite(gp::DX2d(),Precision::Angular())) 
            Circle->Reverse();
          TheBuilder.UpdateEdge(Edge, Circle, Loc, Tol);
-         IsComputed = Standard_True;
        }
       }
       else if ( D.IsParallel(gp::DY2d(),Precision::Angular())) { // Iso U.
@@ -344,7 +330,6 @@ static void KPartCurve3d(TopoDS_Edge           Edge,
          if ( D.IsOpposite(gp::DY2d(),Precision::Angular())) 
            Circle->Reverse();
          TheBuilder.UpdateEdge(Edge, Circle, Loc, Tol);
-         IsComputed = Standard_True;
        }
        else if ( STy == GeomAbs_Cylinder) {
          gp_Cylinder Cyl = S.Cylinder();
@@ -359,7 +344,6 @@ static void KPartCurve3d(TopoDS_Edge           Edge,
          if ( D.IsOpposite(gp::DY2d(),Precision::Angular()))
            Line->Reverse();
          TheBuilder.UpdateEdge(Edge, Line, Loc, Tol);
-         IsComputed = Standard_True;
        }
        else if ( STy == GeomAbs_Cone) {
          gp_Cone  Cone = S.Cone();
@@ -374,7 +358,6 @@ static void KPartCurve3d(TopoDS_Edge           Edge,
          if ( D.IsOpposite(gp::DY2d(),Precision::Angular()))
            Line->Reverse();
          TheBuilder.UpdateEdge(Edge, Line, Loc, Tol);
-         IsComputed = Standard_True;
        }
        else if ( STy == GeomAbs_Torus) {
        }
@@ -384,7 +367,6 @@ static void KPartCurve3d(TopoDS_Edge           Edge,
   else { // Case Plane
     Handle(Geom_Curve) C3d = GeomAPI::To3d(Curve,S.Plane());
     TheBuilder.UpdateEdge(Edge, C3d, Loc, Tol);
-    IsComputed = Standard_True;
   }
 }
 
@@ -482,13 +464,13 @@ Handle(Geom_Curve) MakeCurve (const BiTgte_CurveOnEdge& HC)
 //purpose  : Only the faces connected with caps are given
 //=======================================================================
 
-static void Touched(const BRepOffset_Analyse&  Analyse
-                   const TopTools_MapOfShape& StopFaces
-                   const TopoDS_Shape&        Shape,
-                   TopTools_MapOfShape& TouchedByCork)
+static void Touched(const BRepOffset_Analyse&, 
+                    const TopTools_MapOfShape&
+                    const TopoDS_Shape&,
+                    TopTools_MapOfShape&)
 {
   // currently nothing is done !!
-  if ( Standard_True) {
+  /*if ( Standard_True) {
     return;
   }
   else {
@@ -496,11 +478,12 @@ static void Touched(const BRepOffset_Analyse&  Analyse,
     for ( ; exp.More(); exp.Next()) {
       const TopTools_ListOfShape& L = Analyse.Ancestors(exp.Current());
       if (StopFaces.Contains(L.First())) 
-       TouchedByCork.Add(L.Last());
+        TouchedByCork.Add(L.Last());
       else if (StopFaces.Contains(L.Last())) 
-       TouchedByCork.Add(L.First());
+        TouchedByCork.Add(L.First());
     }
-  }
+  }*/
+  return;
 }
 
 //=======================================================================
@@ -1904,8 +1887,6 @@ void BiTgte_Blend::ComputeSurfaces()
   // Iteration on the edges lines of center
   // and their valid valid part is taken after cut and tube construction.
   // --------------------------------------------------------------------
-  BRepOffset_Type    OT = BRepOffset_Concave;
-  if (myRadius < 0.) OT = BRepOffset_Convex; 
 
   //TopTools_MapIteratorOfMapOfShape ic(myEdges);
   Standard_Integer i;