css: Remove an unused function
authorMatthias Clasen <mclasen@redhat.com>
Tue, 14 Jan 2020 21:42:31 +0000 (16:42 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 14 Jan 2020 23:32:05 +0000 (18:32 -0500)
_gtk_css_style_property_get_mask_affecting was superseded
by GtkCssStyleChange back in 2015.

gtk/gtkcssstyleproperty.c
gtk/gtkcssstylepropertyprivate.h

index bdc7fb853efec04ed75908207f350cc6dc9a2408..7a7b77c084d0aea4afb2990071292fddb2e19d78 100644 (file)
@@ -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;
-}
-
index 1403dee181feb3c6e519bcac389e2b7d29031ec4..2258bec314e451dc95bbb895ac346e9dfbffff2c 100644 (file)
@@ -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);