[gnome-software: 1/2] plugins: Remove some shadowing variables




commit 56a489e4495fb72e8c31ccccafeee084e3ad7d0a
Author: Philip Withnall <pwithnall endlessos org>
Date:   Mon Jan 25 15:36:05 2021 +0000

    plugins: Remove some shadowing variables
    
    These were accidentally introduced in commit 3e635df34da24704 — but
    they’re not actually needed.
    
    Spotted by Milan Crha.
    
    Signed-off-by: Philip Withnall <pwithnall endlessos org>

 plugins/fwupd/gs-plugin-fwupd.c                   | 1 -
 plugins/packagekit/gs-plugin-packagekit-refresh.c | 2 --
 2 files changed, 3 deletions(-)
---
diff --git a/plugins/fwupd/gs-plugin-fwupd.c b/plugins/fwupd/gs-plugin-fwupd.c
index 23e47d58..2a99d995 100644
--- a/plugins/fwupd/gs-plugin-fwupd.c
+++ b/plugins/fwupd/gs-plugin-fwupd.c
@@ -1022,7 +1022,6 @@ gs_plugin_download_app (GsPlugin *plugin,
                g_autoptr(GFile) file = g_file_new_for_path (filename);
 #endif
                gboolean download_success;
-               g_autoptr(GError) error_local = NULL;
 
                if (!gs_plugin_has_flags (plugin, GS_PLUGIN_FLAGS_INTERACTIVE)) {
                        if (!gs_metered_block_app_on_download_scheduler (app, &schedule_entry_handle, 
cancellable, &error_local)) {
diff --git a/plugins/packagekit/gs-plugin-packagekit-refresh.c 
b/plugins/packagekit/gs-plugin-packagekit-refresh.c
index 1f661791..b77827ff 100644
--- a/plugins/packagekit/gs-plugin-packagekit-refresh.c
+++ b/plugins/packagekit/gs-plugin-packagekit-refresh.c
@@ -140,8 +140,6 @@ gs_plugin_download (GsPlugin *plugin,
                return TRUE;
 
        if (!gs_plugin_has_flags (plugin, GS_PLUGIN_FLAGS_INTERACTIVE)) {
-               g_autoptr(GError) error_local = NULL;
-
                if (!gs_metered_block_app_list_on_download_scheduler (list_tmp, &schedule_entry_handle, 
cancellable, &error_local)) {
                        g_warning ("Failed to block on download scheduler: %s",
                                   error_local->message);


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