[evince/wip/gpoo/fix-unused-vars] shell: Remove unused variables




commit b15a4aa37cc8b1a142b4450cbbfd85ae350be1e8
Author: Germán Poo-Caamaño <gpoo gnome org>
Date:   Mon Oct 18 20:19:21 2021 -0300

    shell: Remove unused variables

 shell/ev-utils.c | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)
---
diff --git a/shell/ev-utils.c b/shell/ev-utils.c
index 1def75255..d4e22a3ad 100644
--- a/shell/ev-utils.c
+++ b/shell/ev-utils.c
@@ -117,7 +117,7 @@ create_shadow (GdkPixbuf *src, int blur_radius,
     {
       for (x = 0; x < width; x++)
        {
-         int sumr = 0, sumg = 0, sumb = 0, suma = 0;
+         int suma = 0;
 
          for (i = 0; i < filter->size; i++)
            {
@@ -132,17 +132,6 @@ create_shadow (GdkPixbuf *src, int blur_radius,
                      src_x < 0 || src_x > gdk_pixbuf_get_width (src))
                    continue;
 
-                 sumr += src_pixels [src_y * src_rowstride +
-                                     src_x * src_bpp + 0] *
-                   filter->data [i * filter->size + j];
-                 sumg += src_pixels [src_y * src_rowstride +
-                                     src_x * src_bpp + 1] * 
-                   filter->data [i * filter->size + j];
-
-                 sumb += src_pixels [src_y * src_rowstride +
-                                     src_x * src_bpp + 2] * 
-                   filter->data [i * filter->size + j];
-                 
                  if (src_bpp == 4)
                    suma += src_pixels [src_y * src_rowstride +
                                        src_x * src_bpp + 3] *


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