[gtk+] Remove broken approach to get stable sort of CSS rules



commit a20b4423f42b31500b73d7089faecda23fa55fa6
Author: Alexander Larsson <alexl redhat com>
Date:   Thu Mar 15 16:22:04 2012 +0100

    Remove broken approach to get stable sort of CSS rules
    
    The pointer comparisons in the sort compare function just doesn't
    work.
    
    We still need a stable sort, but the plan is to add a real
    one in glib.

 gtk/gtkcssprovider.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)
---
diff --git a/gtk/gtkcssprovider.c b/gtk/gtkcssprovider.c
index 1001550..77c75a6 100644
--- a/gtk/gtkcssprovider.c
+++ b/gtk/gtkcssprovider.c
@@ -2351,13 +2351,6 @@ gtk_css_provider_compare_rule (gconstpointer a_,
   if (compare != 0)
     return compare;
 
-  /* compare pointers in array to ensure a stable sort */
-  if (a_ < b_)
-    return -1;
-
-  if (a_ > b_)
-    return 1;
-
   return 0;
 }
 



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