[gimp/goat-invasion: 25/234] app: remove the legacy invert lut code



commit d795c824c71b9823f74cd7f2027194e7cc94c88b
Author: Michael Natterer <mitch gimp org>
Date:   Wed Mar 14 12:32:32 2012 +0100

    app: remove the legacy invert lut code

 app/base/lut-funcs.c |   34 ----------------------------------
 app/base/lut-funcs.h |    2 --
 2 files changed, 0 insertions(+), 36 deletions(-)
---
diff --git a/app/base/lut-funcs.c b/app/base/lut-funcs.c
index 2b43215..f1b01cf 100644
--- a/app/base/lut-funcs.c
+++ b/app/base/lut-funcs.c
@@ -89,40 +89,6 @@ brightness_contrast_lut_new (gdouble brightness,
   return lut;
 }
 
-/* ---------------- invert ------------------ */
-
-static gfloat
-invert_lut_func (gpointer  unused,
-                 gint      n_channels,
-                 gint      channel,
-                 gfloat    value)
-{
-  /* don't invert the alpha channel */
-  if ((n_channels == 2 || n_channels == 4) && channel == n_channels -1)
-    return value;
-
-  return 1.0 - value;
-}
-
-static void
-invert_lut_setup (GimpLut *lut,
-                  gint     n_channels)
-{
-  g_return_if_fail (lut != NULL);
-
-  gimp_lut_setup_exact (lut, (GimpLutFunc) invert_lut_func, NULL, n_channels);
-}
-
-GimpLut *
-invert_lut_new (gint n_channels)
-{
-  GimpLut *lut = gimp_lut_new ();
-
-  invert_lut_setup (lut, n_channels);
-
-  return lut;
-}
-
 /* ---------------- Threshold ------------------ */
 
 static gfloat
diff --git a/app/base/lut-funcs.h b/app/base/lut-funcs.h
index 46efb7f..f9c2ffb 100644
--- a/app/base/lut-funcs.h
+++ b/app/base/lut-funcs.h
@@ -27,8 +27,6 @@ void      brightness_contrast_lut_setup (GimpLut       *lut,
                                          gdouble        contrast,
                                          gint           n_channels);
 
-GimpLut * invert_lut_new                (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]