From 80334f0eba238aa2a5b63f4b97099c045d289f10 Mon Sep 17 00:00:00 2001 From: Jehan Date: Thu, 18 Apr 2024 00:24:54 +0200 Subject: [PATCH] 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! --- app/gegl/gimp-gegl-utils.c | 16 ---------------- app/gegl/gimp-gegl-utils.h | 3 --- 2 files changed, 19 deletions(-) diff --git a/app/gegl/gimp-gegl-utils.c b/app/gegl/gimp-gegl-utils.c index 4e09b76436..2091fb537e 100644 --- a/app/gegl/gimp-gegl-utils.c +++ b/app/gegl/gimp-gegl-utils.c @@ -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, diff --git a/app/gegl/gimp-gegl-utils.h b/app/gegl/gimp-gegl-utils.h index ad64a8cde6..d760781b92 100644 --- a/app/gegl/gimp-gegl-utils.h +++ b/app/gegl/gimp-gegl-utils.h @@ -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);