0024510: Remove unused local variables
[occt.git] / src / IntCurve / IntCurve_Polygon2dGen.gxx
index 84a4b77..704d031 100644 (file)
@@ -318,20 +318,9 @@ void IntCurve_Polygon2dGen::ComputeWithBox(const TheCurve&        C,
                TheParams.SetValue(MaxIndexUsed,u);
                
                Standard_Real u1m = 0.5*(u+TheParams.Value(TheIndex.Value(i-1)));
-               Standard_Real um2 = 0.5*(u+TheParams.Value(TheIndex.Value(i+1)));
                gp_Pnt2d P1m = TheCurveTool::Value(C,u1m);
-#ifdef DEB
-               gp_Pnt2d Pm2 = TheCurveTool::Value(C,um2);
-#else
-                TheCurveTool::Value(C,um2);
-#endif
-               gp_Lin2d L1m(P1,gp_Dir2d(gp_Vec2d(P1,Pm)));
-#ifdef DEB
-               gp_Lin2d Lm2(Pm,gp_Dir2d(gp_Vec2d(Pm,ThePnts.Value(TheIndex.Value(i+1)))));
-#else
-                ThePnts.Value(TheIndex.Value(i+1));
-#endif
-               t = L1m.Distance(P1m);
+        gp_Lin2d L1m(P1,gp_Dir2d(gp_Vec2d(P1,Pm)));
+        t = L1m.Distance(P1m);
                i--; 
              }
            }