From 3bfac162fb8f3d65ac51fdad5838b17364175ea6 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 31 Aug 2012 16:45:31 +0000 Subject: (progress_text) kill unused parameter --- urpm/download.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'urpm/download.pm') diff --git a/urpm/download.pm b/urpm/download.pm index 62a9c5ac..d13f844a 100644 --- a/urpm/download.pm +++ b/urpm/download.pm @@ -829,7 +829,7 @@ eval { }; sub progress_text { - my ($mode, $_file, $percent, $total, $eta, $speed) = @_; + my ($mode, $percent, $total, $eta, $speed) = @_; $mode eq 'progress' ? (defined $total && defined $eta ? N(" %s%% of %s completed, ETA = %s, speed = %s", $percent, $total, $eta, $speed) : @@ -847,7 +847,7 @@ sub sync_logger { if ($mode eq 'start') { print STDERR " $file\n"; } elsif ($mode eq 'progress') { - my $text = progress_text($mode, $file, $percent, $total, $eta, $speed); + my $text = progress_text($mode, $percent, $total, $eta, $speed); if (length($text) > $wchar) { $text = substr($text, 0, $wchar) } if (bytes::length($text) < $wchar) { # clearing more than needed in case the terminal is not handling utf8 and we have a utf8 string -- cgit v1.2.1