[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[lintian] 01/02: L::Relation: Removed unused variables



This is an automated email from the git hooks/post-receive script.

nthykier pushed a commit to branch master
in repository lintian.

commit 9c9b09641e82d56c40b759ac622a86d3cecda0ab
Author: Niels Thykier <niels@thykier.net>
Date:   Wed Jan 20 21:00:10 2016 +0000

    L::Relation: Removed unused variables
    
    Signed-off-by: Niels Thykier <niels@thykier.net>
---
 lib/Lintian/Relation.pm | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lib/Lintian/Relation.pm b/lib/Lintian/Relation.pm
index 1f50b39..9599de1 100644
--- a/lib/Lintian/Relation.pm
+++ b/lib/Lintian/Relation.pm
@@ -868,8 +868,7 @@ example:
 =cut
 
 sub matches {
-    my ($self, $regex, $what, $partial) = @_;
-    my $relation = $partial // $self;
+    my ($self, $regex, $what) = @_;
     $what //= VISIT_PRED_NAME;
     return $self->visit(sub { m/$regex/ }, $what | VISIT_STOP_FIRST_MATCH);
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git


Reply to: