[gimp/goat-invasion: 75/418] app: remove copy_component() and its helper functions



commit 722f2b895660751663d11d5f94ca771250f7157e
Author: Michael Natterer <mitch gimp org>
Date:   Fri Mar 16 14:37:35 2012 +0100

    app: remove copy_component() and its helper functions

 app/paint-funcs/paint-funcs-generic.h |   18 ------------------
 app/paint-funcs/paint-funcs.c         |   24 ------------------------
 app/paint-funcs/paint-funcs.h         |   11 -----------
 3 files changed, 0 insertions(+), 53 deletions(-)
---
diff --git a/app/paint-funcs/paint-funcs-generic.h b/app/paint-funcs/paint-funcs-generic.h
index 401b867..f7158e0 100644
--- a/app/paint-funcs/paint-funcs-generic.h
+++ b/app/paint-funcs/paint-funcs-generic.h
@@ -965,24 +965,6 @@ initial_inten_a_pixels (const guchar   *src,
 }
 
 inline void
-copy_component_pixels (const guchar *src,
-                       guchar       *dest,
-                       guint         length,
-                       guint         bytes,
-                       guint         pixel)
-{
-  src += pixel;
-
-  while (length --)
-    {
-      *dest = *src;
-
-      src += bytes;
-      dest++;
-    }
-}
-
-inline void
 copy_color_pixels (const guchar *src,
                    guchar       *dest,
                    guint         length,
diff --git a/app/paint-funcs/paint-funcs.c b/app/paint-funcs/paint-funcs.c
index 39d3ad3..a98fe1f 100644
--- a/app/paint-funcs/paint-funcs.c
+++ b/app/paint-funcs/paint-funcs.c
@@ -3558,30 +3558,6 @@ copy_gray_to_region (PixelRegion *src,
 }
 
 void
-copy_component (PixelRegion *src,
-                PixelRegion *dest,
-                guint        pixel)
-{
-  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_component_pixels (s, d, src->w, src->bytes, pixel);
-          s += src->rowstride;
-          d += dest->rowstride;
-        }
-    }
-}
-
-void
 copy_color (PixelRegion *src,
             PixelRegion *dest)
 {
diff --git a/app/paint-funcs/paint-funcs.h b/app/paint-funcs/paint-funcs.h
index 94b3286..dc12990 100644
--- a/app/paint-funcs/paint-funcs.h
+++ b/app/paint-funcs/paint-funcs.h
@@ -86,12 +86,6 @@ void  gray_to_rgb_pixels    (const guchar *src,
                              guint         length,
                              guint         bytes);
 
-void  copy_component_pixels (const guchar *src,
-                             guchar       *dest,
-                             guint         length,
-                             guint         bytes,
-                             guint         pixel);
-
 void  copy_color_pixels     (const guchar *src,
                              guchar       *dest,
                              guint         length,
@@ -438,11 +432,6 @@ void  combine_mask_and_region             (PixelRegion *src,
 void  copy_gray_to_region                 (PixelRegion *src,
                                            PixelRegion *dest);
 
-/*  Copy a component (indexed by pixel) to a 1-byte region  */
-void  copy_component                      (PixelRegion *src,
-                                           PixelRegion *dest,
-                                           guint        pixel);
-
 /*  Copy the color bytes (without alpha channel) to a src_bytes-1 - byte region  */
 void  copy_color                          (PixelRegion *src,
                                            PixelRegion *dest);



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