[gimp/goat-invasion: 17/241] app: remove unused lut-funcs



commit ca1371b7485dd3f367cf5b06e419a90b2bda448b
Author: Michael Natterer <mitch gimp org>
Date:   Wed Mar 14 02:02:21 2012 +0100

    app: remove unused lut-funcs

 app/base/lut-funcs.c |   73 --------------------------------------------------
 app/base/lut-funcs.h |    6 ----
 2 files changed, 0 insertions(+), 79 deletions(-)
---
diff --git a/app/base/lut-funcs.c b/app/base/lut-funcs.c
index d612565..2b43215 100644
--- a/app/base/lut-funcs.c
+++ b/app/base/lut-funcs.c
@@ -123,79 +123,6 @@ invert_lut_new (gint n_channels)
   return lut;
 }
 
-/* ---------------- add (or subract)------------------ */
-
-static gfloat
-add_lut_func (gdouble *amount,
-              gint     n_channels,
-              gint     channel,
-              gfloat   value)
-{
-  /* don't change the alpha channel */
-  if ((n_channels == 2 || n_channels == 4) && channel == n_channels -1)
-    return value;
-
-  return (value + *amount);
-}
-
-static void
-add_lut_setup (GimpLut *lut,
-               gdouble  amount,
-               gint     n_channels)
-{
-  g_return_if_fail (lut != NULL);
-
-  gimp_lut_setup (lut, (GimpLutFunc) add_lut_func, &amount, n_channels);
-}
-
-GimpLut *
-add_lut_new (gdouble amount,
-             gint    n_channels)
-{
-  GimpLut *lut = gimp_lut_new ();
-
-  add_lut_setup (lut, amount, n_channels);
-
-  return lut;
-}
-
-/* ---------------- intersect (MIN (pixel, value)) ------------------ */
-
-static gfloat
-intersect_lut_func (gdouble *min,
-                    gint     n_channels,
-                    gint     channel,
-                    gfloat   value)
-{
-  /* don't change the alpha channel */
-  if ((n_channels == 2 || n_channels == 4) && channel == n_channels -1)
-    return value;
-
-  return MIN (value, *min);
-}
-
-static void
-intersect_lut_setup (GimpLut *lut,
-                     gdouble  value,
-                     gint     n_channels)
-{
-  g_return_if_fail (lut != NULL);
-
-  gimp_lut_setup_exact (lut,
-                        (GimpLutFunc) intersect_lut_func, &value, n_channels);
-}
-
-GimpLut *
-intersect_lut_new (gdouble value,
-                   gint    n_channels)
-{
-  GimpLut *lut = gimp_lut_new ();
-
-  intersect_lut_setup (lut, value, n_channels);
-
-  return lut;
-}
-
 /* ---------------- Threshold ------------------ */
 
 static gfloat
diff --git a/app/base/lut-funcs.h b/app/base/lut-funcs.h
index 647e4b6..46efb7f 100644
--- a/app/base/lut-funcs.h
+++ b/app/base/lut-funcs.h
@@ -29,12 +29,6 @@ void      brightness_contrast_lut_setup (GimpLut       *lut,
 
 GimpLut * invert_lut_new                (gint           n_channels);
 
-GimpLut * add_lut_new                   (gdouble        amount,
-                                         gint           n_channels);
-
-GimpLut * intersect_lut_new             (gdouble        value,
-                                         gint           n_channels);
-
 GimpLut * threshold_lut_new             (gdouble        value,
                                          gint           n_channels);
 



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