summaryrefslogtreecommitdiff
path: root/libcaja-private/caja-progress-info.c
diff options
context:
space:
mode:
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--;