app: remove color_region()

This commit is contained in:
Michael Natterer
2012-03-26 00:42:13 +02:00
parent 9a1fbe9418
commit 9d8d72a6ee
2 changed files with 0 additions and 36 deletions

View File

@ -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,

View File

@ -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,