libgimpcolor: Remove unnecessary GimpRGB Cairo functions

gimp_cairo_set_source_rgb () and
gimp_cairo_set_source_rgba () are no longer
used in the code base, so let's remove them
as part of the move to GeglColor.
This commit is contained in:
Alx Sa 2024-08-17 14:37:10 +00:00
parent 70ef4bb507
commit 1f5a5812dd
3 changed files with 0 additions and 45 deletions

View File

@ -43,44 +43,6 @@
**/
/**
* gimp_cairo_set_source_rgb:
* @cr: Cairo context
* @color: GimpRGB color
*
* Sets the source pattern within @cr to the solid opaque color
* described by @color.
*
* This function calls cairo_set_source_rgb() for you.
*
* Since: 2.6
**/
void
gimp_cairo_set_source_rgb (cairo_t *cr,
const GimpRGB *color)
{
cairo_set_source_rgb (cr, color->r, color->g, color->b);
}
/**
* gimp_cairo_set_source_rgba:
* @cr: Cairo context
* @color: GimpRGB color
*
* Sets the source pattern within @cr to the solid translucent color
* described by @color.
*
* This function calls cairo_set_source_rgba() for you.
*
* Since: 2.6
**/
void
gimp_cairo_set_source_rgba (cairo_t *cr,
const GimpRGB *color)
{
cairo_set_source_rgba (cr, color->r, color->g, color->b, color->a);
}
/**
* gimp_cairo_checkerboard_create:
* @cr: Cairo context

View File

@ -24,11 +24,6 @@
#define __GIMP_CAIRO_H__
void gimp_cairo_set_source_rgb (cairo_t *cr,
const GimpRGB *color);
void gimp_cairo_set_source_rgba (cairo_t *cr,
const GimpRGB *color);
cairo_pattern_t * gimp_cairo_checkerboard_create (cairo_t *cr,
gint size,
const GeglColor *light,

View File

@ -7,8 +7,6 @@ EXPORTS
gimp_bilinear_rgb
gimp_bilinear_rgba
gimp_cairo_checkerboard_create
gimp_cairo_set_source_rgb
gimp_cairo_set_source_rgba
gimp_cairo_surface_create_buffer
gimp_cairo_surface_get_format
gimp_color_is_out_of_gamut