[gimp/goat-invasion: 470/526] app: remove copy_region()



commit c54cae4a625531264c16d14753998bb8a26dbf54
Author: Michael Natterer <mitch gimp org>
Date:   Mon Apr 9 01:22:50 2012 +0200

    app: remove copy_region()

 app/paint-funcs/paint-funcs.c |   41 -----------------------------------------
 app/paint-funcs/paint-funcs.h |    3 ---
 2 files changed, 0 insertions(+), 44 deletions(-)
---
diff --git a/app/paint-funcs/paint-funcs.c b/app/paint-funcs/paint-funcs.c
index fbe791f..738a765 100644
--- a/app/paint-funcs/paint-funcs.c
+++ b/app/paint-funcs/paint-funcs.c
@@ -1674,47 +1674,6 @@ blend_region (PixelRegion *src1,
 
 
 void
-copy_region (PixelRegion *src,
-             PixelRegion *dest)
-{
-  gpointer pr;
-
-  for (pr = pixel_regions_register (2, src, dest);
-       pr != NULL;
-       pr = pixel_regions_process (pr))
-    {
-      if (src->tiles && dest->tiles &&
-          src->curtile && dest->curtile &&
-          src->offx == 0 && dest->offx == 0 &&
-          src->offy == 0 && dest->offy == 0 &&
-          src->w  == tile_ewidth (src->curtile)  &&
-          dest->w == tile_ewidth (dest->curtile) &&
-          src->h  == tile_eheight (src->curtile) &&
-          dest->h == tile_eheight (dest->curtile))
-        {
-          tile_manager_map_over_tile (dest->tiles,
-                                      dest->curtile, src->curtile);
-        }
-      else
-        {
-          const guchar *s      = src->data;
-          guchar       *d      = dest->data;
-          gint          h      = src->h;
-          gint          pixels = src->w * src->bytes;
-
-          while (h --)
-            {
-              memcpy (d, s, pixels);
-
-              s += src->rowstride;
-              d += dest->rowstride;
-            }
-        }
-    }
-}
-
-
-void
 convolve_region (PixelRegion         *srcR,
                  PixelRegion         *destR,
                  const gfloat        *matrix,
diff --git a/app/paint-funcs/paint-funcs.h b/app/paint-funcs/paint-funcs.h
index 0539043..42eb042 100644
--- a/app/paint-funcs/paint-funcs.h
+++ b/app/paint-funcs/paint-funcs.h
@@ -248,9 +248,6 @@ void  blend_region                        (PixelRegion *src1,
                                            PixelRegion *dest,
                                            guchar       blend);
 
-void  copy_region                         (PixelRegion *src,
-                                           PixelRegion *dest);
-
 void  convolve_region                     (PixelRegion         *srcR,
                                            PixelRegion         *destR,
                                            const gfloat        *matrix,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]