[gimp] convolution-matrix: Remove dead assignment and move variable



commit ce86fbff050b25fe2fa13ec06b46bbd0eaf5f811
Author: Mukund Sivaraman <muks banu com>
Date:   Tue Oct 4 14:30:00 2011 +0530

    convolution-matrix: Remove dead assignment and move variable

 plug-ins/common/convolution-matrix.c |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/plug-ins/common/convolution-matrix.c b/plug-ins/common/convolution-matrix.c
index 56f9187..cc50719 100644
--- a/plug-ins/common/convolution-matrix.c
+++ b/plug-ins/common/convolution-matrix.c
@@ -472,7 +472,6 @@ convolve_pixel (guchar       **src_row,
 
   gfloat sum              = 0;
   gfloat alphasum         = 0;
-  gfloat temp;
   gint   x, y;
   gint   alpha_channel;
 
@@ -482,10 +481,7 @@ convolve_pixel (guchar       **src_row,
 
       for (y = 0; y < MATRIX_SIZE; y++)
         for (x = 0; x < MATRIX_SIZE; x++)
-          {
-            temp = config.matrix[x][y];
-            matrixsum += ABS (config.matrix[x][y]);
-          }
+          matrixsum += ABS (config.matrix[x][y]);
     }
 
   alpha_channel = bpp - 1;
@@ -493,7 +489,7 @@ convolve_pixel (guchar       **src_row,
   for (y = 0; y < MATRIX_SIZE; y++)
     for (x = 0; x < MATRIX_SIZE; x++)
       {
-        temp = config.matrix[x][y];
+        gfloat temp = config.matrix[x][y];
 
         if (channel != alpha_channel && config.alpha_weighting == 1)
           {



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