[gtk/wip/matthiasc/css-values: 11/14] Remove an unnecessary check



commit 2bab057f95c705029d9f5343bb1f18a638604cb5
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Jan 12 00:52:57 2020 -0500

    Remove an unnecessary check

 gtk/gtkcssselector.c | 3 ---
 1 file changed, 3 deletions(-)
---
diff --git a/gtk/gtkcssselector.c b/gtk/gtkcssselector.c
index b6468bd282..fd6b737ab6 100644
--- a/gtk/gtkcssselector.c
+++ b/gtk/gtkcssselector.c
@@ -1726,9 +1726,6 @@ _gtk_css_selector_compare (const GtkCssSelector *a,
 GtkCssChange
 _gtk_css_selector_get_change (const GtkCssSelector *selector)
 {
-  if (selector == NULL)
-    return 0;
-
   return selector->class->get_change (selector, _gtk_css_selector_get_change (gtk_css_selector_previous 
(selector)));
 }
 


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