[gimp/goat-invasion: 76/241] app: remove copy_color() and its helper functions



commit da3c676345958fecee1c54ce9002b4490b474ce8
Author: Michael Natterer <mitch gimp org>
Date:   Fri Mar 16 14:40:45 2012 +0100

    app: remove copy_color() and its helper functions

 app/paint-funcs/paint-funcs-generic.h |   20 --------------------
 app/paint-funcs/paint-funcs.c         |   23 -----------------------
 app/paint-funcs/paint-funcs.h         |    9 ---------
 3 files changed, 0 insertions(+), 52 deletions(-)
---
diff --git a/app/paint-funcs/paint-funcs-generic.h b/app/paint-funcs/paint-funcs-generic.h
index f7158e0..8ee5e3a 100644
--- a/app/paint-funcs/paint-funcs-generic.h
+++ b/app/paint-funcs/paint-funcs-generic.h
@@ -964,25 +964,5 @@ initial_inten_a_pixels (const guchar   *src,
     }
 }
 
-inline void
-copy_color_pixels (const guchar *src,
-                   guchar       *dest,
-                   guint         length,
-                   guint         bytes)
-{
-  const guint alpha = bytes - 1;
-
-  while (length --)
-    {
-      guint b;
-
-      for (b = 0; b < alpha; b++)
-        dest[b] = src[b];
-
-      src  += bytes;
-      dest += bytes - 1;
-    }
-}
-
 
 #endif  /*  __PAINT_FUNCS_GENERIC_H__  */
diff --git a/app/paint-funcs/paint-funcs.c b/app/paint-funcs/paint-funcs.c
index a98fe1f..d34863e 100644
--- a/app/paint-funcs/paint-funcs.c
+++ b/app/paint-funcs/paint-funcs.c
@@ -3557,29 +3557,6 @@ copy_gray_to_region (PixelRegion *src,
     }
 }
 
-void
-copy_color (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          h = src->h;
-
-      while (h--)
-        {
-          copy_color_pixels (s, d, src->w, src->bytes);
-          s += src->rowstride;
-          d += dest->rowstride;
-        }
-    }
-}
-
 struct initial_regions_struct
 {
   guint                 opacity;
diff --git a/app/paint-funcs/paint-funcs.h b/app/paint-funcs/paint-funcs.h
index dc12990..f0e5571 100644
--- a/app/paint-funcs/paint-funcs.h
+++ b/app/paint-funcs/paint-funcs.h
@@ -86,11 +86,6 @@ void  gray_to_rgb_pixels    (const guchar *src,
                              guint         length,
                              guint         bytes);
 
-void  copy_color_pixels     (const guchar *src,
-                             guchar       *dest,
-                             guint         length,
-                             guint         bytes);
-
 /*  apply the mask data to the alpha channel of the pixel data  */
 void  apply_mask_to_alpha_channel         (guchar       *src,
                                            const guchar *mask,
@@ -432,10 +427,6 @@ void  combine_mask_and_region             (PixelRegion *src,
 void  copy_gray_to_region                 (PixelRegion *src,
                                            PixelRegion *dest);
 
-/*  Copy the color bytes (without alpha channel) to a src_bytes-1 - byte region  */
-void  copy_color                          (PixelRegion *src,
-                                           PixelRegion *dest);
-
 void  initial_region                      (PixelRegion    *src,
                                            PixelRegion    *dest,
                                            PixelRegion    *mask,



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