[lintian] 03/08: L::Path: Remove _file_info field
This is an automated email from the git hooks/post-receive script.
nthykier pushed a commit to branch master
in repository lintian.
commit 7c2bee435e114e43cc82007eb573b15d3ebce93a
Author: Niels Thykier <niels@thykier.net>
Date: Mon Jan 25 18:30:11 2016 +0000
L::Path: Remove _file_info field
With that field, we just end up paying for file_info twice.
Signed-off-by: Niels Thykier <niels@thykier.net>
---
lib/Lintian/Path.pm | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/lib/Lintian/Path.pm b/lib/Lintian/Path.pm
index 17cdf08..5212986 100644
--- a/lib/Lintian/Path.pm
+++ b/lib/Lintian/Path.pm
@@ -466,13 +466,7 @@ files.
sub file_info {
my ($self) = @_;
- my $file_info;
- if ($file_info = $self->{'_file_info'}) {
- return $file_info;
- }
- $file_info = $self->_fs_info->_file_info($self);
- $self->{'_file_info'} = $file_info;
- return $file_info;
+ return $self->_fs_info->_file_info($self);
}
=item fs_path
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: