[carton] 234/472: remove unused list_deps

Lucas Kanashiro kanashiro-guest at moszumanska.debian.org
Fri Jul 24 00:38:50 UTC 2015


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

kanashiro-guest pushed a commit to branch master
in repository carton.

commit 32f0f49c60864d59fdcea6ab7d724ce2fc734359
Author: Tatsuhiko Miyagawa <miyagawa at bulknews.net>
Date:   Fri May 31 14:43:43 2013 +0900

    remove unused list_deps
---
 lib/Carton.pm | 16 ----------------
 1 file changed, 16 deletions(-)

diff --git a/lib/Carton.pm b/lib/Carton.pm
index bbc5ebc..7b3ef88 100644
--- a/lib/Carton.pm
+++ b/lib/Carton.pm
@@ -35,22 +35,6 @@ sub local_cache {
     File::Spec->rel2abs("$_[0]->{path}/cache");
 }
 
-sub list_dependencies {
-    my $self = shift;
-
-    my $cpanfile = Module::CPANfile->load;
-    my $prereq = $cpanfile->prereq;
-
-    my $reqs = CPAN::Meta::Requirements->new;
-    $reqs->add_requirements($prereq->requirements_for($_, 'requires'))
-        for qw( configure build runtime test );
-
-    my $hash = $reqs->as_string_hash;
-    # TODO refactor to not rely on string representation
-    # TODO actually check 'perl' version
-    return map "$_~$hash->{$_}", grep { $_ ne 'perl' } keys %$hash;
-}
-
 sub bundle {
     my($self, $cpanfile, $lock) = @_;
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/carton.git



More information about the Pkg-perl-cvs-commits mailing list