[gtk/matthiasc/for-master: 37/39] css: Remove an unused function
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/for-master: 37/39] css: Remove an unused function
- Date: Tue, 14 Jan 2020 22:40:22 +0000 (UTC)
commit d935d5ce5746a3438aeeb913686f5454f76f5c59
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Jan 14 16:42:31 2020 -0500
css: Remove an unused function
_gtk_css_style_property_get_mask_affecting was superseded
by GtkCssStyleChange back in 2015.
gtk/gtkcssstyleproperty.c | 30 ------------------------------
gtk/gtkcssstylepropertyprivate.h | 3 ---
2 files changed, 33 deletions(-)
---
diff --git a/gtk/gtkcssstyleproperty.c b/gtk/gtkcssstyleproperty.c
index bdc7fb853e..7a7b77c084 100644
--- a/gtk/gtkcssstyleproperty.c
+++ b/gtk/gtkcssstyleproperty.c
@@ -372,33 +372,3 @@ _gtk_css_style_property_get_initial_value (GtkCssStyleProperty *property)
return property->initial_value;
}
-
-/**
- * _gtk_css_style_property_get_mask_affecting:
- * @flags: the flags that are affected
- *
- * Computes a bitmask for all properties that have at least one of @flags
- * set.
- *
- * Returns: (transfer full): A #GtkBitmask with the bit set for every
- * property that has at least one of @flags set.
- */
-GtkBitmask *
-_gtk_css_style_property_get_mask_affecting (GtkCssAffects affects)
-{
- GtkBitmask *result;
- guint i;
-
- result = _gtk_bitmask_new ();
-
- for (i = 0; i < _gtk_css_style_property_get_n_properties (); i++)
- {
- GtkCssStyleProperty *prop = _gtk_css_style_property_lookup_by_id (i);
-
- if (_gtk_css_style_property_get_affects (prop) & affects)
- result = _gtk_bitmask_set (result, i, TRUE);
- }
-
- return result;
-}
-
diff --git a/gtk/gtkcssstylepropertyprivate.h b/gtk/gtkcssstylepropertyprivate.h
index 1403dee181..2258bec314 100644
--- a/gtk/gtkcssstylepropertyprivate.h
+++ b/gtk/gtkcssstylepropertyprivate.h
@@ -80,9 +80,6 @@ void _gtk_css_style_property_print_value (GtkCssStyleProp
GtkCssValue *value,
GString *string);
-GtkBitmask * _gtk_css_style_property_get_mask_affecting
- (GtkCssAffects affects);
-
/* XXX - find a better place for these */
GtkCssValue * gtk_css_font_family_value_parse (GtkCssParser *parser);
GtkCssValue * gtk_css_font_size_value_parse (GtkCssParser *parser);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]