[nautilus/wip/hadess/properties-remove-unused-variables: 2/2] properties-window: Remove never set variables
- From: Carlos Soriano <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/hadess/properties-remove-unused-variables: 2/2] properties-window: Remove never set variables
- Date: Mon, 11 Feb 2019 09:09:59 +0000 (UTC)
commit 8d8d047e70e2c610bfb702b6fee19bb9253ced7f
Author: Bastien Nocera <hadess hadess net>
Date: Sun Feb 10 11:21:39 2019 +0100
properties-window: Remove never set variables
The total_count and total_size struct members were read but never set.
This has been the case since the original "multi-file" support was added
for the size reporting in commit 70f0260
src/nautilus-properties-window.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/src/nautilus-properties-window.c b/src/nautilus-properties-window.c
index bf19263d0..2fb932f44 100644
--- a/src/nautilus-properties-window.c
+++ b/src/nautilus-properties-window.c
@@ -118,9 +118,6 @@ struct _NautilusPropertiesWindow
GList *deep_count_files;
guint deep_count_spinner_timeout_id;
- guint total_count;
- goffset total_size;
-
guint long_operation_underway;
GList *changed_files;
@@ -2251,8 +2248,8 @@ directory_contents_value_field_update (NautilusPropertiesWindow *window)
g_assert (NAUTILUS_IS_PROPERTIES_WINDOW (window));
- total_count = window->total_count;
- total_size = window->total_size;
+ total_count = 0;
+ total_size = 0;
unreadable_directory_count = FALSE;
for (l = window->target_files; l; l = l->next)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]