[gtk/wip/baedert/for-master: 29/30] cssstyle: Remove unused _add_difference



commit d3714c5fe8816daa047cfc685a69973c943fa842
Author: Timm Bäder <mail baedert org>
Date:   Sat Aug 24 07:24:49 2019 +0200

    cssstyle: Remove unused _add_difference

 gtk/gtkcssstyle.c        | 24 ------------------------
 gtk/gtkcssstyleprivate.h |  3 ---
 2 files changed, 27 deletions(-)
---
diff --git a/gtk/gtkcssstyle.c b/gtk/gtkcssstyle.c
index 02fc1abc95..835a2b4213 100644
--- a/gtk/gtkcssstyle.c
+++ b/gtk/gtkcssstyle.c
@@ -81,30 +81,6 @@ gtk_css_style_get_section (GtkCssStyle *style,
   return GTK_CSS_STYLE_GET_CLASS (style)->get_section (style, id);
 }
 
-GtkBitmask *
-gtk_css_style_add_difference (GtkBitmask  *accumulated,
-                              GtkCssStyle *style,
-                              GtkCssStyle *other)
-{
-  gint len, i;
-
-  if (style == other)
-    return accumulated;
-
-  len = _gtk_css_style_property_get_n_properties ();
-  for (i = 0; i < len; i++)
-    {
-      if (_gtk_bitmask_get (accumulated, i))
-        continue;
-
-      if (!_gtk_css_value_equal (gtk_css_style_get_value (style, i),
-                                 gtk_css_style_get_value (other, i)))
-        accumulated = _gtk_bitmask_set (accumulated, i, TRUE);
-    }
-
-  return accumulated;
-}
-
 gboolean
 gtk_css_style_is_static (GtkCssStyle *style)
 {
diff --git a/gtk/gtkcssstyleprivate.h b/gtk/gtkcssstyleprivate.h
index ae0947f169..c0add354ad 100644
--- a/gtk/gtkcssstyleprivate.h
+++ b/gtk/gtkcssstyleprivate.h
@@ -64,9 +64,6 @@ GtkCssValue *           gtk_css_style_get_value                 (GtkCssStyle
                                                                  guint                   id) G_GNUC_PURE;
 GtkCssSection *         gtk_css_style_get_section               (GtkCssStyle            *style,
                                                                  guint                   id) G_GNUC_PURE;
-GtkBitmask *            gtk_css_style_add_difference            (GtkBitmask             *accumulated,
-                                                                 GtkCssStyle            *style,
-                                                                 GtkCssStyle            *other);
 gboolean                gtk_css_style_is_static                 (GtkCssStyle            *style) G_GNUC_PURE;
 
 char *                  gtk_css_style_to_string                 (GtkCssStyle            *style);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]