diff --git a/libgimpcolor/gimpcolor.def b/libgimpcolor/gimpcolor.def index aa85f82420..f516e61137 100644 --- a/libgimpcolor/gimpcolor.def +++ b/libgimpcolor/gimpcolor.def @@ -100,7 +100,6 @@ EXPORTS gimp_rgb_min gimp_rgb_multiply gimp_rgb_parse_css - gimp_rgb_parse_hex gimp_rgb_parse_name gimp_rgb_set gimp_rgb_set_alpha diff --git a/libgimpcolor/gimprgb-parse.c b/libgimpcolor/gimprgb-parse.c index 3f81d40309..33d5741d64 100644 --- a/libgimpcolor/gimprgb-parse.c +++ b/libgimpcolor/gimprgb-parse.c @@ -247,42 +247,6 @@ gimp_rgb_parse_name (GimpRGB *rgb, return result; } -/** - * gimp_rgb_parse_hex: - * @rgb: a #GimpRGB struct used to return the parsed color - * @hex: (array length=len): a string describing a color in hexadecimal notation - * @len: the length of @hex, in bytes. or -1 if @hex is nul-terminated - * - * Attempts to parse a string describing an RGB color in hexadecimal - * notation (optionally prefixed with a '#'). - * - * This function does not touch the alpha component of @rgb. - * - * Returns: %TRUE if @hex was parsed successfully and @rgb has - * been set, %FALSE otherwise - * - * Since: 2.2 - **/ -gboolean -gimp_rgb_parse_hex (GimpRGB *rgb, - const gchar *hex, - gint len) -{ - gchar *tmp; - gboolean result; - - g_return_val_if_fail (rgb != NULL, FALSE); - g_return_val_if_fail (hex != NULL, FALSE); - - tmp = gimp_rgb_parse_strip (hex, len); - - result = gimp_rgb_parse_hex_internal (rgb, tmp); - - g_free (tmp); - - return result; -} - /** * gimp_rgb_parse_css: * @rgb: a #GimpRGB struct used to return the parsed color diff --git a/libgimpcolor/gimprgb.h b/libgimpcolor/gimprgb.h index e0128d4e7b..31f383a6bc 100644 --- a/libgimpcolor/gimprgb.h +++ b/libgimpcolor/gimprgb.h @@ -72,9 +72,6 @@ void gimp_rgb_get_uchar (const GimpRGB *rgb, gboolean gimp_rgb_parse_name (GimpRGB *rgb, const gchar *name, gint len); -gboolean gimp_rgb_parse_hex (GimpRGB *rgb, - const gchar *hex, - gint len); gboolean gimp_rgb_parse_css (GimpRGB *rgb, const gchar *css, gint len);