mirror of https://github.com/GNOME/gimp.git
libgimpcolor: gimp_rgb_parse_hex() is also unused.
This commit is contained in:
parent
9f205ca63e
commit
6a85efe92c
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue