[gimp/metadata-browser] curve-bend: Remove redundant assignment and move variable to local block



commit ae0e74b673326a7a2a9fd9c1fa714caf91e3a37c
Author: Mukund Sivaraman <muks banu com>
Date:   Sat Oct 8 18:33:04 2011 +0530

    curve-bend: Remove redundant assignment and move variable to local block

 plug-ins/common/curve-bend.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/plug-ins/common/curve-bend.c b/plug-ins/common/curve-bend.c
index 6a71d24..e2b6515 100644
--- a/plug-ins/common/curve-bend.c
+++ b/plug-ins/common/curve-bend.c
@@ -2926,14 +2926,12 @@ p_vertical_bend (BenderDialog *cd,
   t_Last  *first_arr;
   guchar   color[4];
   guchar   mixcolor[4];
-  guchar   l_alpha_lo;
   gint     l_alias_dir;
   guchar   l_mixmask;
 
   l_topshift = p_upper_curve_extend (cd, src_gdrw->drawable->width,
                                      src_gdrw->drawable->height);
   l_diff = l_curvy = l_nb_curvy = l_nb2_curvy= l_miny = l_maxy = 0;
-  l_alpha_lo = 20;
 
   /* allocate array of last values (one element foreach x koordinate) */
   last_arr  = g_new (t_Last, src_gdrw->x2);
@@ -3075,13 +3073,14 @@ p_vertical_bend (BenderDialog *cd,
 
                       if (l_alias_dir != 0)
                         {
+                          guchar l_alpha_lo;
+
                           l_alpha_lo = 20;
                           if (gimp_drawable_has_alpha(src_gdrw->drawable->drawable_id))
                             {
                               l_alpha_lo = MIN(20, mixcolor[src_gdrw->index_alpha]);
                             }
 
-
                           for(l_dy = 0; l_dy < l_diff; l_dy++)
                             {
                               /* iterate for fading alpha channel */



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