diff --git a/app/core/gimpcontext.c b/app/core/gimpcontext.c index 53c4bd92c6..0923d39a09 100644 --- a/app/core/gimpcontext.c +++ b/app/core/gimpcontext.c @@ -2385,18 +2385,6 @@ gimp_context_get_foreground (GimpContext *context, *color = context->foreground; } -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) @@ -2408,22 +2396,6 @@ gimp_context_set_foreground (GimpContext *context, gimp_context_real_set_foreground (context, color); } -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) { @@ -2463,18 +2435,6 @@ gimp_context_get_background (GimpContext *context, *color = context->background; } -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) @@ -2486,22 +2446,6 @@ gimp_context_set_background (GimpContext *context, gimp_context_real_set_background (context, color); } -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) { diff --git a/app/core/gimpcontext.h b/app/core/gimpcontext.h index 14a1a222a2..7fac0e9ba2 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);