From: Graham Knop Date: Sat, 14 Dec 2013 19:58:15 +0000 (-0500) Subject: remove unneeded method X-Git-Tag: v2.000_000~16 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c6611e1c90fb9afe371ebf7f4e9b88eb35acc574;p=p5sagit%2Flocal-lib.git remove unneeded method --- diff --git a/lib/local/lib.pm b/lib/local/lib.pm index 831e8b4..c5b7995 100644 --- a/lib/local/lib.pm +++ b/lib/local/lib.pm @@ -321,12 +321,7 @@ sub setup_env_hash { } sub print_environment_vars_for { - my $self = $_[0]->new->activate($_[1]); - $self->print_environment_vars; -} -sub print_environment_vars { - my $self = shift; - print $self->environment_vars_string; + print $_[0]->environment_vars_string_for(@_[1..$#_]); } sub environment_vars_string_for {