[gimp/metadata-browser] gimpressionist: Move variable to local block and drop dead assignment



commit cd222531921bab00f961a67eeb6fedb09b3a273f
Author: Mukund Sivaraman <muks banu com>
Date:   Wed Oct 12 16:47:53 2011 +0530

    gimpressionist: Move variable to local block and drop dead assignment

 plug-ins/gimpressionist/repaint.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/plug-ins/gimpressionist/repaint.c b/plug-ins/gimpressionist/repaint.c
index c56edce..ca7cbe2 100644
--- a/plug-ins/gimpressionist/repaint.c
+++ b/plug-ins/gimpressionist/repaint.c
@@ -361,7 +361,6 @@ repaint (ppm_t *p, ppm_t *a)
   double     *brushes_sum;
   int         cx, cy, maxdist;
   double      scale, relief, startangle, anglespan, density, bgamma;
-  double      thissum;
   int         max_progress;
   ppm_t       paper_ppm = {0, 0, NULL};
   ppm_t       dirmap = {0, 0, NULL};
@@ -465,7 +464,6 @@ repaint (ppm_t *p, ppm_t *a)
     }
 
   brush = &brushes[0];
-  thissum = brushes_sum[0];
 
   maxbrushwidth = maxbrushheight = 0;
   for (i = 0; i < num_brushes; i++)
@@ -829,6 +827,7 @@ repaint (ppm_t *p, ppm_t *a)
   for (; i; i--)
     {
       int n;
+      double thissum;
 
       if (i % progstep == 0)
         {



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