[file-roller/wip/jtojnar/clang-analysis: 1/8] window: drop unused variable




commit 66589a59c294a55278d896f2f1ed0e9cad7ff745
Author: Jan Tojnar <jtojnar gmail com>
Date:   Sat Sep 3 12:53:25 2022 +0200

    window: drop unused variable
    
    Discovered with Clang’s scan-build tool:
    
        ../../../src/fr-window.c:3301:3: warning: Value stored to 'archive' is never read 
[deadcode.DeadStores]
                        archive =  private->archive_file;
                        ^          ~~~~~~~~~~~~~~~~~~~~~
    
    The reference was removed with statusbar 
https://gitlab.gnome.org/GNOME/file-roller/-/commit/fd4d0c0af39bbdbbf68df65cccfe38b63ac19185

 src/fr-window.c | 5 -----
 1 file changed, 5 deletions(-)
---
diff --git a/src/fr-window.c b/src/fr-window.c
index 66d93429..3d34ae21 100644
--- a/src/fr-window.c
+++ b/src/fr-window.c
@@ -3287,7 +3287,6 @@ _archive_operation_started (FrWindow *window,
                            FrAction  action)
 {
        FrWindowPrivate *private = fr_window_get_instance_private (window);
-       GFile *archive;
 
        private->action = action;
        _fr_window_start_activity_mode (window);
@@ -3296,10 +3295,6 @@ _archive_operation_started (FrWindow *window,
        debug (DEBUG_INFO, "%s [START] (FR::Window)\n", action_names[action]);
 #endif
 
-       archive = private->pd_last_archive;
-       if (archive == NULL)
-               archive =  private->archive_file;
-
        switch (action) {
        case FR_ACTION_EXTRACTING_FILES:
                open_progress_dialog (window, ((private->saving_file != NULL)


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