app: gimp_gegl_color_new() is not used anywhere anymore.

We don't need to convert GimpRGB to GeglColor now as we work directly with
GeglColor!
This commit is contained in:
Jehan 2024-04-18 00:24:54 +02:00
parent 266e694920
commit 80334f0eba
2 changed files with 0 additions and 19 deletions

View File

@ -93,22 +93,6 @@ gimp_gegl_get_op_enum_type (const gchar *operation,
return G_TYPE_FROM_CLASS (G_PARAM_SPEC_ENUM (pspec)->enum_class);
}
GeglColor *
gimp_gegl_color_new (const GimpRGB *rgb,
const Babl *space)
{
GeglColor *color;
g_return_val_if_fail (rgb != NULL, NULL);
color = gegl_color_new (NULL);
gegl_color_set_pixel (color,
babl_format_with_space ("R'G'B'A double", space),
rgb);
return color;
}
static void
gimp_gegl_progress_callback (GObject *object,
gdouble value,

View File

@ -27,9 +27,6 @@ GList * gimp_gegl_get_op_classes (void);
GType gimp_gegl_get_op_enum_type (const gchar *operation,
const gchar *property);
GeglColor * gimp_gegl_color_new (const GimpRGB *rgb,
const Babl *space);
void gimp_gegl_progress_connect (GeglNode *node,
GimpProgress *progress,
const gchar *text);