css: Remove _gtk_css_computed_values_get_value_by_name()

Now that we use an enum for the IDs, we don't need that function
anymore.
This commit is contained in:
Benjamin Otte
2012-03-31 05:45:28 +02:00
parent 31565139ba
commit a360e77a7b
3 changed files with 2 additions and 19 deletions

View File

@ -214,21 +214,6 @@ _gtk_css_computed_values_get_value (GtkCssComputedValues *values,
return g_ptr_array_index (values->values, id);
}
GtkCssValue *
_gtk_css_computed_values_get_value_by_name (GtkCssComputedValues *values,
const char *name)
{
GtkStyleProperty *prop;
g_return_val_if_fail (GTK_IS_CSS_COMPUTED_VALUES (values), NULL);
g_return_val_if_fail (name != NULL, NULL);
prop = _gtk_style_property_lookup (name);
g_assert (GTK_IS_CSS_STYLE_PROPERTY (prop));
return _gtk_css_computed_values_get_value (values, _gtk_css_style_property_get_id (GTK_CSS_STYLE_PROPERTY (prop)));
}
GtkCssSection *
_gtk_css_computed_values_get_section (GtkCssComputedValues *values,
guint id)