[gimp] app: remove color_region()



commit 9d8d72a6ee05529693c485a43180d5353a1afdde
Author: Michael Natterer <mitch gimp org>
Date:   Mon Mar 26 00:42:13 2012 +0200

    app: remove color_region()

 app/paint-funcs/paint-funcs.c |   33 ---------------------------------
 app/paint-funcs/paint-funcs.h |    3 ---
 2 files changed, 0 insertions(+), 36 deletions(-)
---
diff --git a/app/paint-funcs/paint-funcs.c b/app/paint-funcs/paint-funcs.c
index 666a2d8..048a55f 100644
--- a/app/paint-funcs/paint-funcs.c
+++ b/app/paint-funcs/paint-funcs.c
@@ -1644,39 +1644,6 @@ color_erase_inten_pixels (const guchar   *src1,
 /**************************************************/
 
 void
-color_region (PixelRegion  *dest,
-              const guchar *col)
-{
-  gpointer pr;
-
-  for (pr = pixel_regions_register (1, dest);
-       pr != NULL;
-       pr = pixel_regions_process (pr))
-    {
-      guchar *s = dest->data;
-      gint    h = dest->h;
-
-      if (dest->w * dest->bytes == dest->rowstride)
-        {
-          /* do it all in one function call if we can
-           * this hasn't been tested to see if it is a
-           * signifigant speed gain yet
-           */
-          color_pixels (s, col, dest->w * h, dest->bytes);
-        }
-      else
-        {
-          while (h--)
-            {
-              color_pixels (s, col, dest->w, dest->bytes);
-
-              s += dest->rowstride;
-            }
-        }
-    }
-}
-
-void
 blend_region (PixelRegion *src1,
               PixelRegion *src2,
               PixelRegion *dest,
diff --git a/app/paint-funcs/paint-funcs.h b/app/paint-funcs/paint-funcs.h
index 2d93e48..1ae490c 100644
--- a/app/paint-funcs/paint-funcs.h
+++ b/app/paint-funcs/paint-funcs.h
@@ -263,9 +263,6 @@ void  paint_funcs_color_erase_helper      (GimpRGB       *src,
 
 /*  Region functions  */
 
-void  color_region                        (PixelRegion  *dest,
-                                           const guchar *color);
-
 void  blend_region                        (PixelRegion *src1,
                                            PixelRegion *src2,
                                            PixelRegion *dest,



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