[gimp/goat-invasion: 54/418] app: remove clear_region(), it's replaced by GEGL everywhere
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/goat-invasion: 54/418] app: remove clear_region(), it's replaced by GEGL everywhere
- Date: Wed, 4 Apr 2012 10:30:18 +0000 (UTC)
commit 5328109ef70d7cfbcd7adad97e99860d80a9a0cd
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]