[gnome-commander] Remove list_result member variable from gnome-cmd-dir class



commit 90c589f5a7cf08e133b142c0a59ac1a733fcc2c1
Author: Uwe Scholz <u scholz83 gmx de>
Date:   Thu Jun 3 19:20:54 2021 +0200

    Remove list_result member variable from gnome-cmd-dir class

 src/dirlist.cc      | 3 ---
 src/gnome-cmd-dir.h | 1 -
 2 files changed, 4 deletions(-)
---
diff --git a/src/dirlist.cc b/src/dirlist.cc
index 7fda99736..487c48b1e 100644
--- a/src/dirlist.cc
+++ b/src/dirlist.cc
@@ -190,7 +190,6 @@ void dirlist_list (GnomeCmdDir *dir, gboolean visualProgress)
     dir->gFileInfoList = nullptr;
     dir->list_handle = NULL;
     dir->list_counter = 0;
-    dir->list_result = GNOME_VFS_OK;
     dir->state = GnomeCmdDir::STATE_LISTING;
 
     if (!visualProgress)
@@ -206,8 +205,6 @@ void dirlist_list (GnomeCmdDir *dir, gboolean visualProgress)
 void dirlist_cancel (GnomeCmdDir *dir)
 {
     dir->state = GnomeCmdDir::STATE_EMPTY;
-    dir->list_result = GNOME_VFS_OK;
 
     DEBUG('l', "Calling async_cancel\n");
-    gnome_vfs_async_cancel (dir->list_handle);
 }
diff --git a/src/gnome-cmd-dir.h b/src/gnome-cmd-dir.h
index f270f51b9..ca076fb08 100644
--- a/src/gnome-cmd-dir.h
+++ b/src/gnome-cmd-dir.h
@@ -61,7 +61,6 @@ struct GnomeCmdDir
     GList *infolist;
     GList *gFileInfoList;
     GnomeVFSAsyncHandle *list_handle;
-    GnomeVFSResult list_result;
     gint list_counter;
     State state;
 


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