From ce86fbff050b25fe2fa13ec06b46bbd0eaf5f811 Mon Sep 17 00:00:00 2001 From: Mukund Sivaraman Date: Tue, 4 Oct 2011 14:30:00 +0530 Subject: [PATCH] convolution-matrix: Remove dead assignment and move variable --- plug-ins/common/convolution-matrix.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/plug-ins/common/convolution-matrix.c b/plug-ins/common/convolution-matrix.c index 56f91876bb..cc50719768 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) {