[gnome-commander] Removing unused gFileInfo member from GnomeCmdFile class
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] Removing unused gFileInfo member from GnomeCmdFile class
- Date: Fri, 1 Jan 2021 21:20:23 +0000 (UTC)
commit a6c07e9aa0b547eeaa813de8b277fdb4d6e20bde
Author: Uwe Scholz <u scholz83 gmx de>
Date: Fri Jan 1 22:03:04 2021 +0100
Removing unused gFileInfo member from GnomeCmdFile class
src/gnome-cmd-file.cc | 15 ---------------
src/gnome-cmd-file.h | 1 -
2 files changed, 16 deletions(-)
---
diff --git a/src/gnome-cmd-file.cc b/src/gnome-cmd-file.cc
index d96ef96f..3059e0f0 100644
--- a/src/gnome-cmd-file.cc
+++ b/src/gnome-cmd-file.cc
@@ -273,21 +273,6 @@ void gnome_cmd_file_setup (GnomeCmdFile *gnomeCmdFile, GnomeVFSFileInfo *info, G
gnomeCmdFile->gFile = GNOME_CMD_FILE_BASE (gnomeCmdFile)->gFile;
g_free(fUriString);
- GError *error;
- error = nullptr;
-
- gnomeCmdFile->gFileInfo = g_file_query_info(gnomeCmdFile->gFile,
- G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE,
- G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS,
- nullptr,
- &error);
-
- if (gnomeCmdFile->gFileInfo && error)
- {
- g_message ("retrieving file info failed: %s", error->message);
- g_error_free (error);
- exit (EXIT_FAILURE);
- }
}
}
diff --git a/src/gnome-cmd-file.h b/src/gnome-cmd-file.h
index a115ed4e..dc124588 100644
--- a/src/gnome-cmd-file.h
+++ b/src/gnome-cmd-file.h
@@ -47,7 +47,6 @@ struct GnomeCmdFile
GnomeVFSFileInfo *info;
GFile *gFile;
- GFileInfo *gFileInfo;
gboolean is_dotdot;
gchar *collate_key; // necessary for proper sorting of UTF-8 encoded file names
GnomeCmdFileMetadata *metadata;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]