[gegl] mosaic: remove unused variable/allocation "data"



commit f933589409735654608752fa2a1917891ee540e0
Author: Øyvind Kolås <pippin gimp org>
Date:   Wed Sep 16 21:09:37 2015 +0200

    mosaic: remove unused variable/allocation "data"
    
    as noticed by cppcheck/serval2412 yahoo fr in bug #754955

 operations/common/mosaic.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/operations/common/mosaic.c b/operations/common/mosaic.c
index d60d3a2..f2ca89c 100644
--- a/operations/common/mosaic.c
+++ b/operations/common/mosaic.c
@@ -537,7 +537,6 @@ gaussian_deriv (gfloat              *src_rgn,
 {
   gfloat *dp;
   gfloat *sp, *s;
-  gfloat *data;
   gfloat *buf, *b;
   gint    chan;
   gint    i, row, col;
@@ -554,7 +553,6 @@ gaussian_deriv (gfloat              *src_rgn,
 
   /*  allocate buffers for rows/cols  */
   length = MAX (result->width, result->height) * NB_CPN;
-  data = g_new (gfloat, length * 2);
 
   length = 3;
 
@@ -723,7 +721,6 @@ gaussian_deriv (gfloat              *src_rgn,
     }
 
   g_free (buf);
-  g_free (data);
 }
 
 /*


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