[gnome-software] trivial: Do not refresh the ratings data on refresh



commit e3286ba68020738c7a296254ef20dc7a1cfbb48f
Author: Richard Hughes <richard hughsie com>
Date:   Mon May 22 11:51:17 2017 +0100

    trivial: Do not refresh the ratings data on refresh
    
    On slow connections this can take more than 0.5 seconds.

 plugins/odrs/gs-plugin-odrs.c |    9 ---------
 1 files changed, 0 insertions(+), 9 deletions(-)
---
diff --git a/plugins/odrs/gs-plugin-odrs.c b/plugins/odrs/gs-plugin-odrs.c
index 9477fe0..d66766d 100644
--- a/plugins/odrs/gs-plugin-odrs.c
+++ b/plugins/odrs/gs-plugin-odrs.c
@@ -211,15 +211,6 @@ gs_plugin_odrs_refresh_ratings (GsPlugin *plugin,
 }
 
 gboolean
-gs_plugin_setup (GsPlugin *plugin, GCancellable *cancellable, GError **error)
-{
-       /* just ensure there is any data, no matter how old */
-       if (!gs_plugin_odrs_refresh_ratings (plugin, G_MAXUINT, cancellable, error))
-               return FALSE;
-       return TRUE;
-}
-
-gboolean
 gs_plugin_refresh (GsPlugin *plugin,
                   guint cache_age,
                   GsPluginRefreshFlags flags,


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