Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Toss an unused action method that mostly dates back to the pre-nom days.
  • Loading branch information
jnthn committed Apr 15, 2012
1 parent 1639834 commit e07d6e4
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions src/Perl6/Actions.pm
Expand Up @@ -995,29 +995,6 @@ class Perl6::Actions is HLL::Actions {

method name($/) { }

method module_name($/) {
# XXX Needs re-doing.
my @name := Perl6::Grammar::parse_name(~$<longname>);
unless nqp::elems(@name) {
$/.CURSOR.panic('Cannot deal with an empty module name here');
}
my $var := PAST::Var.new(
:name(@name.pop),
:namespace(@name),
:scope('package')
);
if $<arglist> {
my $past := $<arglist>[0].ast;
$past.pasttype('callmethod');
$past.name('!select');
$past.unshift($var);
make $past;
}
else {
make $var;
}
}

method fatarrow($/) {
make make_pair($<key>.Str, $<val>.ast);
}
Expand Down

0 comments on commit e07d6e4

Please sign in to comment.