[gimp/metadata-browser] app: remove unused function cubic() from paint-funcs.c



commit 4087e17fa055409a5276944b7bd6efc9b56ced4f
Author: Michael Natterer <mitch gimp org>
Date:   Mon Apr 23 22:15:31 2012 +0200

    app: remove unused function cubic() from paint-funcs.c

 app/paint-funcs/paint-funcs.c |   19 -------------------
 1 files changed, 0 insertions(+), 19 deletions(-)
---
diff --git a/app/paint-funcs/paint-funcs.c b/app/paint-funcs/paint-funcs.c
index 7395b44..88bb933 100644
--- a/app/paint-funcs/paint-funcs.c
+++ b/app/paint-funcs/paint-funcs.c
@@ -96,11 +96,6 @@ static const guchar  no_mask = OPAQUE_OPACITY;
 
 /*  Local function prototypes  */
 
-static gdouble  cubic                    (gdouble         dx,
-                                          gint            jm1,
-                                          gint            j,
-                                          gint            jp1,
-                                          gint            jp2);
 static void     apply_layer_mode_replace (const guchar   *src1,
                                           const guchar   *src2,
                                           guchar         *dest,
@@ -156,20 +151,6 @@ run_length_encode (const guchar *src,
     }
 }
 
-/* Note: cubic function no longer clips result */
-static inline gdouble
-cubic (gdouble dx,
-       gint    jm1,
-       gint    j,
-       gint    jp1,
-       gint    jp2)
-{
-  /* Catmull-Rom - not bad */
-  return (gdouble) ((( ( - jm1 + 3 * j - 3 * jp1 + jp2 ) * dx +
-                       ( 2 * jm1 - 5 * j + 4 * jp1 - jp2 ) ) * dx +
-                     ( - jm1 + jp1 ) ) * dx + (j + j) ) / 2.0;
-}
-
 
 /*********************/
 /*  FUNCTIONS        */



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