[gimp/metadata-browser] app: remove the unused copy_region_nocow()



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