[gnome-software: 1/2] gs-app: Drop GS_APP_KUDO_POPULAR due to being unused




commit 7a7fd507d41a39c409ccf18bb806553b7133aaf2
Author: Philip Withnall <pwithnall endlessos org>
Date:   Tue Feb 8 15:54:12 2022 +0000

    gs-app: Drop GS_APP_KUDO_POPULAR due to being unused
    
    Signed-off-by: Philip Withnall <pwithnall endlessos org>

 lib/gs-app.c | 6 ------
 lib/gs-app.h | 2 --
 2 files changed, 8 deletions(-)
---
diff --git a/lib/gs-app.c b/lib/gs-app.c
index f03c753f7..8ef7b69c4 100644
--- a/lib/gs-app.c
+++ b/lib/gs-app.c
@@ -458,8 +458,6 @@ gs_app_kudos_to_string (guint64 kudos)
                g_ptr_array_add (array, "has-keywords");
        if ((kudos & GS_APP_KUDO_HAS_SCREENSHOTS) > 0)
                g_ptr_array_add (array, "has-screenshots");
-       if ((kudos & GS_APP_KUDO_POPULAR) > 0)
-               g_ptr_array_add (array, "popular");
        if ((kudos & GS_APP_KUDO_HIGH_CONTRAST) > 0)
                g_ptr_array_add (array, "high-contrast");
        if ((kudos & GS_APP_KUDO_HI_DPI_ICON) > 0)
@@ -4612,10 +4610,6 @@ gs_app_get_kudos_percentage (GsApp *app)
        if ((priv->kudos & GS_APP_KUDO_SANDBOXED_SECURE) > 0)
                percentage += 20;
 
-       /* popular apps should be at *least* 50% */
-       if ((priv->kudos & GS_APP_KUDO_POPULAR) > 0)
-               percentage = MAX (percentage, 50);
-
        return MIN (percentage, 100);
 }
 
diff --git a/lib/gs-app.h b/lib/gs-app.h
index 6a0e98d39..91701f903 100644
--- a/lib/gs-app.h
+++ b/lib/gs-app.h
@@ -98,7 +98,6 @@ typedef enum {
  * @GS_APP_KUDO_USES_NOTIFICATIONS:    Registers notifications
  * @GS_APP_KUDO_HAS_KEYWORDS:          Has at least 1 keyword
  * @GS_APP_KUDO_HAS_SCREENSHOTS:       Supplies screenshots
- * @GS_APP_KUDO_POPULAR:               Is popular
  * @GS_APP_KUDO_HIGH_CONTRAST:         Installs a high contrast icon
  * @GS_APP_KUDO_HI_DPI_ICON:           Installs a HiDPI icon
  * @GS_APP_KUDO_SANDBOXED:             Application is sandboxed
@@ -116,7 +115,6 @@ typedef enum {
        GS_APP_KUDO_USES_NOTIFICATIONS          = 1 << 6,
        GS_APP_KUDO_HAS_KEYWORDS                = 1 << 7,
        GS_APP_KUDO_HAS_SCREENSHOTS             = 1 << 9,
-       GS_APP_KUDO_POPULAR                     = 1 << 10,
        GS_APP_KUDO_HIGH_CONTRAST               = 1 << 13,
        GS_APP_KUDO_HI_DPI_ICON                 = 1 << 14,
        GS_APP_KUDO_SANDBOXED                   = 1 << 15,


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