[gnome-commander] noop: Removing comments
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] noop: Removing comments
- Date: Sat, 15 May 2021 21:00:56 +0000 (UTC)
commit 4989a632dcdf3392a7f035aba94fffa8dfba0eb2
Author: Uwe Scholz <u scholz83 gmx de>
Date: Sat May 15 22:34:06 2021 +0200
noop: Removing comments
src/dirlist.cc | 20 +-------------------
1 file changed, 1 insertion(+), 19 deletions(-)
---
diff --git a/src/dirlist.cc b/src/dirlist.cc
index f60ad5c6..3432dc66 100644
--- a/src/dirlist.cc
+++ b/src/dirlist.cc
@@ -117,13 +117,11 @@ static void enumerate_children_callback(GObject *direnum, GAsyncResult *result,
void sync_list (GnomeCmdDir *dir)
{
GError *error = nullptr;
- //GnomeVFSFileInfoOptions infoOpts = (GnomeVFSFileInfoOptions) (GNOME_VFS_FILE_INFO_FOLLOW_LINKS |
GNOME_VFS_FILE_INFO_GET_MIME_TYPE);
gchar *uri_str = GNOME_CMD_FILE (dir)->get_uri_str();
DEBUG('l', "sync_list: %s\n", uri_str);
dir->infolist = NULL;
- //dir->list_result = gnome_vfs_directory_list_load (&dir->infolist, uri_str, infoOpts);
auto gFile = GNOME_CMD_FILE (dir)->gFile;
@@ -139,7 +137,6 @@ void sync_list (GnomeCmdDir *dir)
return;
}
- //GList *gFileInfoList = nullptr;
g_file_enumerator_next_files_async(gFileEnumerator,
2,
G_PRIORITY_LOW,
@@ -147,14 +144,10 @@ void sync_list (GnomeCmdDir *dir)
enumerate_children_callback,
dir);
- //enumerate_children_callback(G_OBJECT(gFileEnumerator), nullptr, dir);
g_object_unref(gFileEnumerator);
-
g_free (uri_str);
dir->state = dir->list_result==GNOME_VFS_OK ? GnomeCmdDir::STATE_LISTED : GnomeCmdDir::STATE_EMPTY;
- //dir->done_func (dir, dir->infolist, dir->list_result);
- //dir->done_func (dir, dir->gFileInfoList, dir->list_result);
}
static void enumerate_children_callback(GObject *direnum, GAsyncResult *result, gpointer user_data)
@@ -165,6 +158,7 @@ static void enumerate_children_callback(GObject *direnum, GAsyncResult *result,
GList *gFileInfosList = g_file_enumerator_next_files_finish( gFileEnumerator,
result, &error);
+
if( error )
{
g_critical("Unable to add files to list, error: %s", error->message);
@@ -183,18 +177,6 @@ static void enumerate_children_callback(GObject *direnum, GAsyncResult *result,
else
{
dir->gFileInfoList = g_list_concat (dir->gFileInfoList, g_list_copy (gFileInfosList));
- //g_list_foreach (list, (GFunc) gnome_vfs_file_info_ref, NULL);
- //dir->list_counter += entries_read;
- //DEBUG ('l', "files listed: %d\n", dir->list_counter);
-
- //GList *node = gFileInfosList;
- //GFileInfo *info;
- //while(node)
- //{
- // info = (GFileInfo *) node->data;
- // node = node->next;
- // g_object_unref(info);
- //}
g_file_enumerator_next_files_async(G_FILE_ENUMERATOR(direnum),
20,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]