[gimp/goat-invasion: 54/412] app: remove clear_region(), it's replaced by GEGL everywhere



commit 38b63137f58287994590ca889882e559bd4f5c26
Author: Michael Natterer <mitch gimp org>
Date:   Thu Mar 15 20:15:24 2012 +0100

    app: remove clear_region(), it's replaced by GEGL everywhere

 app/paint-funcs/paint-funcs.c |   29 -----------------------------
 app/paint-funcs/paint-funcs.h |    2 --
 2 files changed, 0 insertions(+), 31 deletions(-)
---
diff --git a/app/paint-funcs/paint-funcs.c b/app/paint-funcs/paint-funcs.c
index ac5127b..996977c 100644
--- a/app/paint-funcs/paint-funcs.c
+++ b/app/paint-funcs/paint-funcs.c
@@ -1783,35 +1783,6 @@ extract_from_indexed_pixels (guchar       *src,
 /**************************************************/
 
 void
-clear_region (PixelRegion *dest)
-{
-  gpointer pr;
-
-  for (pr = pixel_regions_register (1, dest);
-       pr != NULL;
-       pr = pixel_regions_process (pr))
-    {
-      if (dest->w * dest->bytes == dest->rowstride)
-        {
-          memset (dest->data, 0, dest->w * dest->h * dest->bytes);
-        }
-      else
-        {
-          guchar *d = dest->data;
-          gint    h = dest->h;
-
-          while (h--)
-            {
-              memset (d, 0, dest->w * dest->bytes);
-
-              d += dest->rowstride;
-            }
-        }
-    }
-}
-
-
-void
 color_region (PixelRegion  *dest,
               const guchar *col)
 {
diff --git a/app/paint-funcs/paint-funcs.h b/app/paint-funcs/paint-funcs.h
index 81a2588..a343b98 100644
--- a/app/paint-funcs/paint-funcs.h
+++ b/app/paint-funcs/paint-funcs.h
@@ -343,8 +343,6 @@ void  extract_from_indexed_pixels         (guchar       *src,
 
 /*  Region functions  */
 
-void  clear_region                        (PixelRegion  *dest);
-
 void  color_region                        (PixelRegion  *dest,
                                            const guchar *color);
 void  color_region_mask                   (PixelRegion  *dest,



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