[gnome-software] trivial: Fix two more unused variables



commit b23d31959571d2a287f66a44218e74048694557c
Author: Kalev Lember <klember redhat com>
Date:   Thu Feb 28 16:11:34 2019 +0100

    trivial: Fix two more unused variables

 plugins/core/gs-plugin-generic-updates.c | 3 ---
 src/gs-application.c                     | 2 --
 2 files changed, 5 deletions(-)
---
diff --git a/plugins/core/gs-plugin-generic-updates.c b/plugins/core/gs-plugin-generic-updates.c
index 693074ed..9512a7ec 100644
--- a/plugins/core/gs-plugin-generic-updates.c
+++ b/plugins/core/gs-plugin-generic-updates.c
@@ -97,9 +97,6 @@ gs_plugin_refine (GsPlugin *plugin,
        app = gs_plugin_generic_updates_get_os_update (plugin);
        for (guint i = 0; i < gs_app_list_length (os_updates); i++) {
                GsApp *app_tmp = gs_app_list_index (os_updates, i);
-               const gchar *id = gs_app_get_unique_id (app_tmp);
-               if (id == NULL)
-                       id = gs_app_get_source_default (app_tmp);
                gs_app_add_related (app, app_tmp);
                gs_app_list_remove (list, app_tmp);
        }
diff --git a/src/gs-application.c b/src/gs-application.c
index 889741a9..49c7d2a9 100644
--- a/src/gs-application.c
+++ b/src/gs-application.c
@@ -642,11 +642,9 @@ _copy_file_to_cache (GFile *file_src, GError **error)
        g_autoptr(GFile) file_dest = NULL;
        g_autofree gchar *cache_dir = NULL;
        g_autofree gchar *cache_fn = NULL;
-       g_autofree gchar *filename = NULL;
        g_autofree gchar *basename = NULL;
 
        /* get destination location */
-       filename = g_file_get_path (file_src);
        cache_dir = g_dir_make_tmp ("gnome-software-XXXXXX", error);
        if (cache_dir == NULL)
                return NULL;


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