From ea2a3f3e6202c867bac29eff5d30872f4df401fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sat, 24 Aug 2019 07:24:49 +0200 Subject: [PATCH] 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);