Skip to content

Commit d89a658

Browse files
committed
Toss dead code-path.
1 parent c83b4b5 commit d89a658

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

src/QAST/Compiler.nqp

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1131,17 +1131,6 @@ class QAST::Compiler is HLL::Compiler {
11311131
$ops.result(%*REG<cur>);
11321132
$ops;
11331133
}
1134-
1135-
method post_children($node) {
1136-
my $posts := PIRT::Ops.new();
1137-
my @results;
1138-
for @($node) {
1139-
my $sval := self.as_post(QAST::SVal.new( :value(~$_) ));
1140-
$posts.push($sval);
1141-
nqp::push(@results, $sval.result);
1142-
}
1143-
[$posts, @results]
1144-
}
11451134

11461135
method children($node) {
11471136
my $posts := PIRT::Ops.new();
@@ -1513,9 +1502,7 @@ class QAST::Compiler is HLL::Compiler {
15131502
my $ops := self.post_new('Ops', :result(%*REG<cur>));
15141503
my $name := nqp::defined($node.name) ?? self.escape($node.name) !! '';
15151504
my $subtype := $node.subtype;
1516-
my $cpn := nqp::istype($node[0], QAST::Node)
1517-
?? self.children($node[0])
1518-
!! self.post_children($node[0]);
1505+
my $cpn := self.children($node[0]);
15191506
my @pargs := $cpn[1] // [];
15201507
my @nargs := $cpn[2] // [];
15211508
my $subpost := nqp::shift(@pargs);

0 commit comments

Comments
 (0)