summaryrefslogtreecommitdiff
path: root/dselect/methods
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2013-01-01 02:17:12 +0100
committerGuillem Jover <guillem@debian.org>2013-05-08 04:21:36 +0200
commit5fb97d6dabbe6591527d338b71fb6cb2499447d9 (patch)
treebcf7a8ece1b56ca929d33f4aba4e20ff0fe2e86c /dselect/methods
parent9feb1c833b0264e3c062698c591d3d1dd528764d (diff)
downloaddpkg-5fb97d6dabbe6591527d338b71fb6cb2499447d9.tar.gz
perl: Remove unused variables
Fixes Variables::ProhibitUnusedVariables. Warned-by: perlcritic
Diffstat (limited to 'dselect/methods')
-rw-r--r--dselect/methods/Dselect/Ftp.pm2
-rwxr-xr-xdselect/methods/ftp/install2
-rwxr-xr-xdselect/methods/ftp/update2
3 files changed, 2 insertions, 4 deletions
diff --git a/dselect/methods/Dselect/Ftp.pm b/dselect/methods/Dselect/Ftp.pm
index dc0cc3a53..6d6376047 100644
--- a/dselect/methods/Dselect/Ftp.pm
+++ b/dselect/methods/Dselect/Ftp.pm
@@ -47,7 +47,7 @@ sub read_config {
$code = <$vars_fh>;
close $vars_fh;
- my $VAR1;
+ my $VAR1; ## no critic (Variables::ProhibitUnusedVariables)
$conf = eval $code;
die "Couldn't eval $vars content : $@\n" if ($@);
if (ref($conf) =~ /HASH/) {
diff --git a/dselect/methods/ftp/install b/dselect/methods/ftp/install
index de365e334..25b8378ec 100755
--- a/dselect/methods/ftp/install
+++ b/dselect/methods/ftp/install
@@ -65,7 +65,7 @@ if (-f "$methdir/md5sums") {
die "Couldn't read file $methdir/md5sums";
my $code = <$md5sums_fh>;
close $md5sums_fh;
- my $VAR1;
+ my $VAR1; ## no critic (Variables::ProhibitUnusedVariables)
my $res = eval $code;
if ($@) {
die "Couldn't eval $methdir/md5sums content: $@\n";
diff --git a/dselect/methods/ftp/update b/dselect/methods/ftp/update
index bb3050c0b..048044b3f 100755
--- a/dselect/methods/ftp/update
+++ b/dselect/methods/ftp/update
@@ -218,8 +218,6 @@ if($@) {
$exit = 1;
};
-my $ans;
-
if ($packages_modified) { # don't clear if nothing changed
print <<'EOM';