mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
(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:
parent
106d95229f
commit
437994eb80
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user