[gimp/goat-invasion: 388/418] app: remove gray_to_rgb_pixels()



commit 5fb51964632d7078cbdc96613beae1fda7144e56
Author: Michael Natterer <mitch gimp org>
Date:   Sun Apr 1 20:24:26 2012 +0200

    app: remove gray_to_rgb_pixels()

 app/paint-funcs/paint-funcs-generic.h |   25 -------------------------
 app/paint-funcs/paint-funcs.h         |    5 -----
 2 files changed, 0 insertions(+), 30 deletions(-)
---
diff --git a/app/paint-funcs/paint-funcs-generic.h b/app/paint-funcs/paint-funcs-generic.h
index b11a61f..5904b67 100644
--- a/app/paint-funcs/paint-funcs-generic.h
+++ b/app/paint-funcs/paint-funcs-generic.h
@@ -190,31 +190,6 @@ scale_pixels (const guchar *src,
 }
 
 inline void
-gray_to_rgb_pixels (const guchar *src,
-                    guchar       *dest,
-                    guint         length,
-                    guint         bytes)
-{
-  const gboolean has_alpha  = (bytes == 2) ? TRUE : FALSE;
-  const gint     dest_bytes = (has_alpha) ? 4 : 3;
-
-  while (length --)
-    {
-      guint b;
-
-      for (b = 0; b < bytes; b++)
-        dest[b] = src[0];
-
-      if (has_alpha)
-        dest[3] = src[1];
-
-      src += bytes;
-      dest += dest_bytes;
-    }
-}
-
-
-inline void
 apply_mask_to_alpha_channel (guchar       *src,
                              const guchar *mask,
                              guint         opacity,
diff --git a/app/paint-funcs/paint-funcs.h b/app/paint-funcs/paint-funcs.h
index 583b5e9..102a228 100644
--- a/app/paint-funcs/paint-funcs.h
+++ b/app/paint-funcs/paint-funcs.h
@@ -33,11 +33,6 @@ void  scale_pixels          (const guchar *src,
                              guint         length,
                              gint          scale);
 
-void  gray_to_rgb_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,



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