[gegl] fractal-trace: Remove unused variables, unused args



commit 6f2aa1da1765e18c2e6ae573d50aeeb20b3fa8a9
Author: Mukund Sivaraman <muks banu com>
Date:   Thu Jun 30 21:28:45 2011 +0530

    fractal-trace: Remove unused variables, unused args

 operations/workshop/fractal-trace.c |   10 +++-------
 1 files changed, 3 insertions(+), 7 deletions(-)
---
diff --git a/operations/workshop/fractal-trace.c b/operations/workshop/fractal-trace.c
index 2d04313..e74e823 100644
--- a/operations/workshop/fractal-trace.c
+++ b/operations/workshop/fractal-trace.c
@@ -78,8 +78,7 @@ julia (gdouble  x,
        gdouble  jy,
        gdouble *u,
        gdouble *v,
-       gint     depth,
-       gdouble  escape_radius)
+       gint     depth)
 {
   gint    i;
   gdouble xx = x;
@@ -94,8 +93,6 @@ julia (gdouble  x,
       tmp = x2 - y2 + jx;
       yy  = 2 * xx * yy + jy;
       xx  = tmp;
-      /*commented this line because it is bugy */
-      /*if (x2 + y2 > (pow(escape_radius,2))) break;*/
     }
 
   *u = xx;
@@ -118,7 +115,6 @@ fractaltrace (GeglBuffer          *input,
   gdouble        cx, cy;
   gdouble        px, py;
   gfloat         dest[4];
-  gdouble        escape_radius = sqrt(pow(o->X2 - o->X1,2) + pow(o->Y2 - o->Y1,2));
 
   scale_x = (o->X2 - o->X1) / picture->width;
   scale_y = (o->Y2 - o->Y1) / picture->height;
@@ -134,11 +130,11 @@ fractaltrace (GeglBuffer          *input,
       switch (fractal_type)
         {
         case FRACTAL_TYPE_JULIA:
-          julia (cx, cy, o->JX, o->JY, &px, &py, o->depth, escape_radius);
+          julia (cx, cy, o->JX, o->JY, &px, &py, o->depth);
           break;
 
         case FRACTAL_TYPE_MANDELBROT:
-          julia (cx, cy, cx, cy, &px, &py, o->depth, escape_radius);
+          julia (cx, cy, cx, cy, &px, &py, o->depth);
           break;
 
         default:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]