[gnome-software] trivial: Remove some unused variables



commit 1228324b717ed266c2942c5d9c8fe2f06e678427
Author: Richard Hughes <richard hughsie com>
Date:   Fri Oct 21 18:01:43 2016 +0100

    trivial: Remove some unused variables

 src/gs-app-list.c                 |    1 -
 src/gs-app.c                      |    6 ------
 src/gs-shell.c                    |    2 --
 src/plugins/gs-appstream.c        |    1 -
 src/plugins/gs-flatpak-symlinks.c |    1 -
 5 files changed, 0 insertions(+), 11 deletions(-)
---
diff --git a/src/gs-app-list.c b/src/gs-app-list.c
index f2d62f1..43fd0f6 100644
--- a/src/gs-app-list.c
+++ b/src/gs-app-list.c
@@ -103,7 +103,6 @@ static void
 gs_app_list_add_safe (GsAppList *list, GsApp *app)
 {
        const gchar *id;
-       guint i;
 
        /* if we're lazy-loading the ID then we can't filter for duplicates */
        id = gs_app_get_unique_id (app);
diff --git a/src/gs-app.c b/src/gs-app.c
index 9edaa18..7f16977 100644
--- a/src/gs-app.c
+++ b/src/gs-app.c
@@ -2790,10 +2790,7 @@ gs_app_set_install_date (GsApp *app, guint64 install_date)
 gboolean
 gs_app_is_installed (GsApp *app)
 {
-       AsAppState state;
-
        g_return_val_if_fail (GS_IS_APP (app), FALSE);
-
        return (app->state == AS_APP_STATE_INSTALLED) ||
               (app->state == AS_APP_STATE_UPDATABLE) ||
               (app->state == AS_APP_STATE_UPDATABLE_LIVE) ||
@@ -2813,10 +2810,7 @@ gs_app_is_installed (GsApp *app)
 gboolean
 gs_app_is_updatable (GsApp *app)
 {
-       AsAppState state;
-
        g_return_val_if_fail (GS_IS_APP (app), FALSE);
-
        return (app->state == AS_APP_STATE_UPDATABLE) ||
               (app->state == AS_APP_STATE_UPDATABLE_LIVE);
 }
diff --git a/src/gs-shell.c b/src/gs-shell.c
index 34b59a0..6c044b5 100644
--- a/src/gs-shell.c
+++ b/src/gs-shell.c
@@ -1255,7 +1255,6 @@ static gboolean
 gs_shell_show_event_file_to_app (GsShell *shell, GsPluginEvent *event)
 {
        GsShellEventButtons buttons = GS_SHELL_EVENT_BUTTON_NONE;
-       GsShellPrivate *priv = gs_shell_get_instance_private (shell);
        const GError *error = gs_plugin_event_get_error (event);
        g_autoptr(GString) str = g_string_new (NULL);
 
@@ -1370,7 +1369,6 @@ gs_shell_rescan_events (GsShell *shell)
        GsPluginEvent *event;
        GsShellPrivate *priv = gs_shell_get_instance_private (shell);
        GtkWidget *widget;
-       guint i;
 
        /* find the first active event and show it */
        event = gs_plugin_loader_get_event_default (priv->plugin_loader);
diff --git a/src/plugins/gs-appstream.c b/src/plugins/gs-appstream.c
index 51b39fa..b1ddfd1 100644
--- a/src/plugins/gs-appstream.c
+++ b/src/plugins/gs-appstream.c
@@ -891,7 +891,6 @@ gs_appstream_store_add_category_apps (GsPlugin *plugin,
                                      GCancellable *cancellable,
                                      GError **error)
 {
-       GsPluginData *priv = gs_plugin_get_data (plugin);
        GPtrArray *array;
        GPtrArray *desktop_groups;
        guint i;
diff --git a/src/plugins/gs-flatpak-symlinks.c b/src/plugins/gs-flatpak-symlinks.c
index 1212482..d3849d5 100644
--- a/src/plugins/gs-flatpak-symlinks.c
+++ b/src/plugins/gs-flatpak-symlinks.c
@@ -46,7 +46,6 @@ gs_flatpak_symlinks_cleanup_kind (const gchar *cache_dir,
                return FALSE;
        }
        while ((tmp = g_dir_read_name (dir)) != NULL) {
-               gchar *str;
                g_autofree gchar *fn = NULL;
                g_autofree gchar *origin = NULL;
                g_autofree gchar *prefix_colon = g_strdup_printf ("%s:", prefix);


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