(do_move_dir_dir): remove unused variable.

Variable calc_total is set but isn't read.

Found by Andreas Mohr <and@gmx.li>.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2021-06-06 14:55:55 +03:00
parent 106d95229f
commit 437994eb80

View File

@ -1563,7 +1563,6 @@ do_move_dir_dir (const WPanel * panel, file_op_total_context_t * tctx, file_op_c
gboolean move_over = FALSE;
gboolean dstat_ok;
vfs_path_t *src_vpath, *dst_vpath;
gboolean calc_total = FALSE;
src_vpath = vfs_path_from_str (s);
dst_vpath = vfs_path_from_str (d);
@ -1617,8 +1616,6 @@ do_move_dir_dir (const WPanel * panel, file_op_total_context_t * tctx, file_op_c
FILEGUI_DIALOG_MULTI_ITEM);
if (return_status != FILE_CONT)
goto ret;
calc_total = TRUE;
}
return_status = copy_dir_dir (tctx, ctx, s, d, FALSE, TRUE, TRUE, NULL);
@ -1665,7 +1662,7 @@ do_move_dir_dir (const WPanel * panel, file_op_total_context_t * tctx, file_op_c
}
/* Failed because of filesystem boundary -> copy dir instead */
if (panel != NULL && !calc_total)
if (panel != NULL)
{
/* In case of single directory, calculate totals. In case of many directories,
totals are calcuated already. */