summaryrefslogtreecommitdiff
path: root/libcaja-private/caja-progress-info.c
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-03-05 02:14:49 +0100
committerZenWalker <[email protected]>2019-03-07 00:00:20 +0100
commitfc9a637006bab37dbb73c678983032111831a623 (patch)
treecd6e7ccb63135b737b244a89f0589603e3aecf1c /libcaja-private/caja-progress-info.c
parentee16c212d5ce11f6d782f86bb62302356b163462 (diff)
downloadcaja-fc9a637006bab37dbb73c678983032111831a623.tar.bz2
caja-fc9a637006bab37dbb73c678983032111831a623.tar.xz
avoid variables set but not used
Diffstat (limited to 'libcaja-private/caja-progress-info.c')
-rw-r--r--libcaja-private/caja-progress-info.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/libcaja-private/caja-progress-info.c b/libcaja-private/caja-progress-info.c
index 8d6885c4..dbf3db55 100644
--- a/libcaja-private/caja-progress-info.c
+++ b/libcaja-private/caja-progress-info.c
@@ -463,7 +463,7 @@ widget_reposition_as_paused (GtkWidget * widget)
ProgressWidgetData *data;
GList *children, *child;
gboolean abort = FALSE;
- int i, mypos = -1;
+ int i;
GtkWidget * container = get_widgets_container();
children = gtk_container_get_children (GTK_CONTAINER(container));
@@ -473,9 +473,6 @@ widget_reposition_as_paused (GtkWidget * widget)
data = (ProgressWidgetData*) g_object_get_data (
G_OBJECT(child->data), "data");
- if (child->data == widget)
- mypos = i;
-
if (child->data != widget && is_op_paused(data->state)) {
abort = TRUE;
i--;