[gimp] app: remove gimp_context_[get|set]_[foreground|background]_pixel()



commit 0f98eda5a5445e2e5cad4e759ce75217e4248557
Author: Michael Natterer <mitch gimp org>
Date:   Sat May 28 09:35:25 2016 +0200

    app: remove gimp_context_[get|set]_[foreground|background]_pixel()
    
    Artifacts from early GEGL posting.

 app/core/gimpcontext.c |   56 ------------------------------------------------
 app/core/gimpcontext.h |   12 ----------
 2 files changed, 0 insertions(+), 68 deletions(-)
---
diff --git a/app/core/gimpcontext.c b/app/core/gimpcontext.c
index 53c4bd9..0923d39 100644
--- a/app/core/gimpcontext.c
+++ b/app/core/gimpcontext.c
@@ -2386,18 +2386,6 @@ gimp_context_get_foreground (GimpContext *context,
 }
 
 void
-gimp_context_get_foreground_pixel (GimpContext *context,
-                                   const Babl  *pixel_format,
-                                   gpointer     pixel)
-{
-  g_return_if_fail (GIMP_IS_CONTEXT (context));
-  g_return_if_fail (pixel_format != NULL);
-  g_return_if_fail (pixel != NULL);
-
-  gimp_rgba_get_pixel (&context->foreground, pixel_format, pixel);
-}
-
-void
 gimp_context_set_foreground (GimpContext   *context,
                              const GimpRGB *color)
 {
@@ -2409,22 +2397,6 @@ gimp_context_set_foreground (GimpContext   *context,
 }
 
 void
-gimp_context_set_foreground_pixel (GimpContext   *context,
-                                   const Babl    *pixel_format,
-                                   gconstpointer  pixel)
-{
-  GimpRGB color;
-
-  g_return_if_fail (GIMP_IS_CONTEXT (context));
-  g_return_if_fail (pixel_format != NULL);
-  g_return_if_fail (pixel != NULL);
-
-  gimp_rgba_set_pixel (&color, pixel_format, pixel);
-
-  gimp_context_set_foreground (context, &color);
-}
-
-void
 gimp_context_foreground_changed (GimpContext *context)
 {
   g_return_if_fail (GIMP_IS_CONTEXT (context));
@@ -2464,18 +2436,6 @@ gimp_context_get_background (GimpContext *context,
 }
 
 void
-gimp_context_get_background_pixel (GimpContext *context,
-                                   const Babl  *pixel_format,
-                                   gpointer     pixel)
-{
-  g_return_if_fail (GIMP_IS_CONTEXT (context));
-  g_return_if_fail (pixel_format != NULL);
-  g_return_if_fail (pixel != NULL);
-
-  gimp_rgba_get_pixel (&context->background, pixel_format, pixel);
-}
-
-void
 gimp_context_set_background (GimpContext   *context,
                              const GimpRGB *color)
 {
@@ -2487,22 +2447,6 @@ gimp_context_set_background (GimpContext   *context,
 }
 
 void
-gimp_context_set_background_pixel (GimpContext   *context,
-                                   const Babl    *pixel_format,
-                                   gconstpointer  pixel)
-{
-  GimpRGB color;
-
-  g_return_if_fail (GIMP_IS_CONTEXT (context));
-  g_return_if_fail (pixel_format != NULL);
-  g_return_if_fail (pixel != NULL);
-
-  gimp_rgba_set_pixel (&color, pixel_format, pixel);
-
-  gimp_context_set_background (context, &color);
-}
-
-void
 gimp_context_background_changed (GimpContext *context)
 {
   g_return_if_fail (GIMP_IS_CONTEXT (context));
diff --git a/app/core/gimpcontext.h b/app/core/gimpcontext.h
index 14a1a22..7fac0e9 100644
--- a/app/core/gimpcontext.h
+++ b/app/core/gimpcontext.h
@@ -245,28 +245,16 @@ void             gimp_context_paint_info_changed  (GimpContext     *context);
 /*  foreground color  */
 void             gimp_context_get_foreground       (GimpContext     *context,
                                                     GimpRGB         *color);
-void             gimp_context_get_foreground_pixel (GimpContext     *context,
-                                                    const Babl      *pixel_format,
-                                                    gpointer         pixel);
 void             gimp_context_set_foreground       (GimpContext     *context,
                                                     const GimpRGB   *color);
-void             gimp_context_set_foreground_pixel (GimpContext     *context,
-                                                    const Babl      *pixel_format,
-                                                    gconstpointer    pixel);
 void             gimp_context_foreground_changed   (GimpContext     *context);
 
 
 /*  background color  */
 void             gimp_context_get_background       (GimpContext     *context,
                                                     GimpRGB         *color);
-void             gimp_context_get_background_pixel (GimpContext     *context,
-                                                    const Babl      *pixel_format,
-                                                    gpointer         pixel);
 void             gimp_context_set_background       (GimpContext     *context,
                                                     const GimpRGB   *color);
-void             gimp_context_set_background_pixel (GimpContext     *context,
-                                                    const Babl      *pixel_format,
-                                                    gconstpointer    pixel);
 void             gimp_context_background_changed   (GimpContext     *context);
 
 


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