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



commit ca6d0e530898e7958ba94b75abe5a20b116cf05f
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]