[gimp/goat-invasion: 389/608] app: remove scale_pixels()



commit d63cfe1aca10b2cc88acb901254ef86fbc3b8cdf
Author: Michael Natterer <mitch gimp org>
Date:   Sun Apr 1 20:25:35 2012 +0200

    app: remove scale_pixels()

 app/paint-funcs/paint-funcs-generic.h |   14 --------------
 app/paint-funcs/paint-funcs.h         |    5 -----
 2 files changed, 0 insertions(+), 19 deletions(-)
---
diff --git a/app/paint-funcs/paint-funcs-generic.h b/app/paint-funcs/paint-funcs-generic.h
index 5904b67..a355247 100644
--- a/app/paint-funcs/paint-funcs-generic.h
+++ b/app/paint-funcs/paint-funcs-generic.h
@@ -174,20 +174,6 @@ replace_pixels (const guchar   *src1,
     }
 }
 
-inline void
-scale_pixels (const guchar *src,
-              guchar       *dest,
-              guint         length,
-              gint          scale)
-{
-  gint tmp;
-
-  while (length --)
-    {
-      *dest++ = (guchar) INT_MULT (*src, scale, tmp);
-      src++;
-    }
-}
 
 inline void
 apply_mask_to_alpha_channel (guchar       *src,
diff --git a/app/paint-funcs/paint-funcs.h b/app/paint-funcs/paint-funcs.h
index 102a228..0539043 100644
--- a/app/paint-funcs/paint-funcs.h
+++ b/app/paint-funcs/paint-funcs.h
@@ -28,11 +28,6 @@ void  blend_pixels          (const guchar *src1,
                              guint         w,
                              guint         bytes);
 
-void  scale_pixels          (const guchar *src,
-                             guchar       *dest,
-                             guint         length,
-                             gint          scale);
-
 /*  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]