[gimp/goat-invasion: 44/418] app: remove the unused copy_region_nocow()



commit e2708d9c7bdce6e3e57d8ff5e8d009a2bce9ac7d
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]