From 9d8d72a6ee05529693c485a43180d5353a1afdde Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Mon, 26 Mar 2012 00:42:13 +0200 Subject: [PATCH] app: remove color_region() --- app/paint-funcs/paint-funcs.c | 33 --------------------------------- app/paint-funcs/paint-funcs.h | 3 --- 2 files changed, 36 deletions(-) diff --git a/app/paint-funcs/paint-funcs.c b/app/paint-funcs/paint-funcs.c index 666a2d806b..048a55f970 100644 --- a/app/paint-funcs/paint-funcs.c +++ b/app/paint-funcs/paint-funcs.c @@ -1643,39 +1643,6 @@ color_erase_inten_pixels (const guchar *src1, /* REGION FUNCTIONS */ /**************************************************/ -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, diff --git a/app/paint-funcs/paint-funcs.h b/app/paint-funcs/paint-funcs.h index 2d93e48feb..1ae490c721 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,