[gnome-software: 1/7] gs-overview-page: Remove redundant filtering of featured apps list




commit 9d9e8e76afbe2a5a19489cd6d2291ebb1fad7e34
Author: Philip Withnall <pwithnall endlessos org>
Date:   Tue May 24 15:39:56 2022 +0100

    gs-overview-page: Remove redundant filtering of featured apps list
    
    Filtering by `FILTER_FLAG_KEY_ID` is redundant as the list-apps
    operation has already filtered by `FILTER_FLAG_KEY_ID_PROVIDES`, which
    is a superset of `FILTER_FLAG_KEY_ID`.
    
    Signed-off-by: Philip Withnall <pwithnall endlessos org>

 src/gs-overview-page.c | 1 -
 1 file changed, 1 deletion(-)
---
diff --git a/src/gs-overview-page.c b/src/gs-overview-page.c
index e2274f044..8bd7d2b04 100644
--- a/src/gs-overview-page.c
+++ b/src/gs-overview-page.c
@@ -291,7 +291,6 @@ gs_overview_page_get_featured_cb (GObject *source_object,
                goto out;
        }
 
-       gs_app_list_filter_duplicates (list, GS_APP_LIST_FILTER_FLAG_KEY_ID);
        gs_app_list_randomize (list);
 
        /* Filter out apps which don’t have a suitable hi-res icon. */


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