[gimp] app: remove the unused copy_region_nocow()
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: remove the unused copy_region_nocow()
- Date: Wed, 2 May 2012 16:00:10 +0000 (UTC)
commit caeeca2111b6f6957ecfbc7e9e0a28c2d780c13f
Author: Michael Natterer <mitch gimp org>
Date: Thu Mar 15 11:07:51 2012 +0100
app: remove the unused copy_region_nocow()
app/paint-funcs/paint-funcs.c | 25 -------------------------
app/paint-funcs/paint-funcs.h | 2 --
2 files changed, 0 insertions(+), 27 deletions(-)
---
diff --git a/app/paint-funcs/paint-funcs.c b/app/paint-funcs/paint-funcs.c
index 04a8b3a..ac5127b 100644
--- a/app/paint-funcs/paint-funcs.c
+++ b/app/paint-funcs/paint-funcs.c
@@ -2001,31 +2001,6 @@ copy_region (PixelRegion *src,
}
}
-void
-copy_region_nocow (PixelRegion *src,
- PixelRegion *dest)
-{
- gpointer pr;
-
- for (pr = pixel_regions_register (2, src, dest);
- pr != NULL;
- pr = pixel_regions_process (pr))
- {
- const guchar *s = src->data;
- guchar *d = dest->data;
- gint pixels = src->w * src->bytes;
- gint h = src->h;
-
- while (h --)
- {
- memcpy (d, s, pixels);
-
- s += src->rowstride;
- d += dest->rowstride;
- }
- }
-}
-
void
add_alpha_region (PixelRegion *src,
diff --git a/app/paint-funcs/paint-funcs.h b/app/paint-funcs/paint-funcs.h
index d1726d0..81a2588 100644
--- a/app/paint-funcs/paint-funcs.h
+++ b/app/paint-funcs/paint-funcs.h
@@ -369,8 +369,6 @@ void shade_region (PixelRegion *src,
void copy_region (PixelRegion *src,
PixelRegion *dest);
-void copy_region_nocow (PixelRegion *src,
- PixelRegion *dest);
void add_alpha_region (PixelRegion *src,
PixelRegion *dest);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]