[gtk/wip/baedert/for-master: 22/30] csslookup: Remove 'relevant' parameter from _init



commit 7ff415e5c830c91126fb593c1bc3bebd73eae832
Author: Timm Bäder <mail baedert org>
Date:   Thu Aug 22 18:08:51 2019 +0200

    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,


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