mirror of https://github.com/GNOME/gimp.git
libgimpbase, libgimpconfig: Remove unused GimpRGBs
d_color is no longer used in the codebase. gimp_config_deserialize_rgb () has been superseded by gimp_config_deserialize_color ().
This commit is contained in:
parent
56ee564527
commit
63a4e8de56
|
@ -317,7 +317,6 @@ struct _GPParam
|
||||||
GBytes *d_bytes;
|
GBytes *d_bytes;
|
||||||
GPParamColor d_gegl_color;
|
GPParamColor d_gegl_color;
|
||||||
GPParamColorArray d_color_array;
|
GPParamColorArray d_color_array;
|
||||||
GimpRGB d_color;
|
|
||||||
GimpParasite d_parasite;
|
GimpParasite d_parasite;
|
||||||
GPParamArray d_array;
|
GPParamArray d_array;
|
||||||
GPParamIDArray d_id_array;
|
GPParamIDArray d_id_array;
|
||||||
|
|
|
@ -74,9 +74,6 @@ static GTokenType gimp_config_deserialize_memsize (GValue *value,
|
||||||
static GTokenType gimp_config_deserialize_path (GValue *value,
|
static GTokenType gimp_config_deserialize_path (GValue *value,
|
||||||
GParamSpec *prop_spec,
|
GParamSpec *prop_spec,
|
||||||
GScanner *scanner);
|
GScanner *scanner);
|
||||||
static GTokenType gimp_config_deserialize_rgb (GValue *value,
|
|
||||||
GParamSpec *prop_spec,
|
|
||||||
GScanner *scanner);
|
|
||||||
static GTokenType gimp_config_deserialize_matrix2 (GValue *value,
|
static GTokenType gimp_config_deserialize_matrix2 (GValue *value,
|
||||||
GParamSpec *prop_spec,
|
GParamSpec *prop_spec,
|
||||||
GScanner *scanner);
|
GScanner *scanner);
|
||||||
|
@ -371,10 +368,6 @@ gimp_config_deserialize_value (GValue *value,
|
||||||
{
|
{
|
||||||
return gimp_config_deserialize_path (value, prop_spec, scanner);
|
return gimp_config_deserialize_path (value, prop_spec, scanner);
|
||||||
}
|
}
|
||||||
else if (prop_spec->value_type == GIMP_TYPE_RGB)
|
|
||||||
{
|
|
||||||
return gimp_config_deserialize_rgb (value, prop_spec, scanner);
|
|
||||||
}
|
|
||||||
else if (prop_spec->value_type == GIMP_TYPE_MATRIX2)
|
else if (prop_spec->value_type == GIMP_TYPE_MATRIX2)
|
||||||
{
|
{
|
||||||
return gimp_config_deserialize_matrix2 (value, prop_spec, scanner);
|
return gimp_config_deserialize_matrix2 (value, prop_spec, scanner);
|
||||||
|
@ -715,23 +708,6 @@ gimp_config_deserialize_path (GValue *value,
|
||||||
return G_TOKEN_RIGHT_PAREN;
|
return G_TOKEN_RIGHT_PAREN;
|
||||||
}
|
}
|
||||||
|
|
||||||
static GTokenType
|
|
||||||
gimp_config_deserialize_rgb (GValue *value,
|
|
||||||
GParamSpec *prop_spec,
|
|
||||||
GScanner *scanner)
|
|
||||||
{
|
|
||||||
GeglColor *color = NULL;
|
|
||||||
GimpRGB rgb;
|
|
||||||
|
|
||||||
if (! gimp_scanner_parse_color (scanner, &color))
|
|
||||||
return G_TOKEN_NONE;
|
|
||||||
|
|
||||||
gegl_color_get_pixel (color, babl_format ("R'G'B'A double"), &rgb);
|
|
||||||
g_value_set_boxed (value, &rgb);
|
|
||||||
|
|
||||||
return G_TOKEN_RIGHT_PAREN;
|
|
||||||
}
|
|
||||||
|
|
||||||
static GTokenType
|
static GTokenType
|
||||||
gimp_config_deserialize_matrix2 (GValue *value,
|
gimp_config_deserialize_matrix2 (GValue *value,
|
||||||
GParamSpec *prop_spec,
|
GParamSpec *prop_spec,
|
||||||
|
|
Loading…
Reference in New Issue