Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
don't need to build our own hash with exportables
There's already one in `EXPORT::ALL::`.
  • Loading branch information
Carl Masak committed Jun 8, 2016
1 parent 5b4eaa0 commit b98fb69
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions lib/_007/Test.pm
Expand Up @@ -348,15 +348,7 @@ sub throws-exception($program, $message, $desc = "MISSING TEST DESCRIPTION") is
our sub EXPORT(*@things) {
my %exports;
for @things -> $thing {
my $routine = {
'&read' => &read,
'&is-result' => &is-result,
'&is-error' => &is-error,
'&parses-to' => &parses-to,
'&parse-error' => &parse-error,
'&outputs' => &outputs,
'&throws-exception' => &throws-exception,
}{$thing} // die "Didn't find '$thing'";
my $routine = EXPORT::ALL::{$thing} // die "Didn't find '$thing'";
%exports{$thing} = $routine;
}
return %exports;
Expand Down

0 comments on commit b98fb69

Please sign in to comment.