From 191e3bc7e1d65ace2797d94a61e7c705010b6d33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Thu, 22 Aug 2019 18:08:51 +0200 Subject: [PATCH] csslookup: Remove 'relevant' parameter from _init Unused. --- gtk/gtkcsslookup.c | 3 +-- gtk/gtkcsslookupprivate.h | 3 +-- gtk/gtkcssstaticstyle.c | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/gtk/gtkcsslookup.c b/gtk/gtkcsslookup.c index a595479162..cfe5bfc5c5 100644 --- a/gtk/gtkcsslookup.c +++ b/gtk/gtkcsslookup.c @@ -25,8 +25,7 @@ #include "gtkprivate.h" void -_gtk_css_lookup_init (GtkCssLookup *lookup, - const GtkBitmask *relevant) +_gtk_css_lookup_init (GtkCssLookup *lookup) { memset (lookup, 0, sizeof (*lookup)); } diff --git a/gtk/gtkcsslookupprivate.h b/gtk/gtkcsslookupprivate.h index 0d6c1fc529..34acd504c3 100644 --- a/gtk/gtkcsslookupprivate.h +++ b/gtk/gtkcsslookupprivate.h @@ -40,8 +40,7 @@ struct _GtkCssLookup { GtkCssLookupValue values[GTK_CSS_PROPERTY_N_PROPERTIES]; }; -void _gtk_css_lookup_init (GtkCssLookup *lookup, - const GtkBitmask *relevant); +void _gtk_css_lookup_init (GtkCssLookup *lookup); void _gtk_css_lookup_destroy (GtkCssLookup *lookup); gboolean _gtk_css_lookup_is_missing (const GtkCssLookup *lookup, guint id); diff --git a/gtk/gtkcssstaticstyle.c b/gtk/gtkcssstaticstyle.c index f2e0b1db16..840281e24e 100644 --- a/gtk/gtkcssstaticstyle.c +++ b/gtk/gtkcssstaticstyle.c @@ -175,7 +175,7 @@ gtk_css_static_style_new_compute (GtkStyleProvider *provider, GtkCssLookup lookup; GtkCssChange change = GTK_CSS_CHANGE_ANY_SELF | GTK_CSS_CHANGE_ANY_SIBLING | GTK_CSS_CHANGE_ANY_PARENT; - _gtk_css_lookup_init (&lookup, NULL); + _gtk_css_lookup_init (&lookup); if (matcher) gtk_style_provider_lookup (provider,