[gnome-software] trivial: Remove the 'All' category from the group list



commit d2de0a302a8439b27c8d24e189f6a5e87c37e2e7
Author: Richard Hughes <richard hughsie com>
Date:   Thu Jun 2 11:40:12 2016 +0100

    trivial: Remove the 'All' category from the group list

 src/gs-plugin-loader.c |   21 ---------------------
 1 files changed, 0 insertions(+), 21 deletions(-)
---
diff --git a/src/gs-plugin-loader.c b/src/gs-plugin-loader.c
index b932893..b94b89c 100644
--- a/src/gs-plugin-loader.c
+++ b/src/gs-plugin-loader.c
@@ -2208,27 +2208,6 @@ gs_plugin_loader_get_categories_thread_cb (GTask *task,
                gs_plugin_status_update (plugin, NULL, GS_PLUGIN_STATUS_FINISHED);
        }
 
-       /* ensure they all have an 'All' category */
-       for (i = 0; i < state->catlist->len; i++) {
-               GsCategory *parent = GS_CATEGORY (g_ptr_array_index (state->catlist, i));
-               if (g_strcmp0 (gs_category_get_id (parent), "Addons") == 0)
-                       continue;
-               if (gs_category_find_child (parent, "all") == NULL) {
-                       g_autoptr(GsCategory) child = NULL;
-                       child = gs_category_new ("all");
-                       gs_category_add_child (parent, child);
-                       /* this is probably valid... */
-                       gs_category_set_size (child, gs_category_get_size (parent));
-               }
-               if (gs_category_find_child (parent, "featured") == NULL) {
-                       g_autoptr(GsCategory) child = NULL;
-                       child = gs_category_new ("featured");
-                       gs_category_add_child (parent, child);
-                       /* this is probably valid... */
-                       gs_category_set_size (child, 5);
-               }
-       }
-
        /* sort by name */
        g_ptr_array_sort (state->catlist, gs_plugin_loader_category_sort_cb);
        for (i = 0; i < state->catlist->len; i++) {


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