Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
throw out unused $¢
those were added to subs and methods in a recent-ish patch,
but aren't actually used terribly often.
  • Loading branch information
timo committed Sep 27, 2015
1 parent 7116059 commit 08d9122
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Perl6/Optimizer.nqp
Expand Up @@ -541,6 +541,12 @@ my class BlockVarOptimizer {
nqp::deletekey(%!decls, '$!');
}
}
if nqp::existskey(%!decls, '') {
if !nqp::existskey(%!usages_flat, '') && !nqp::existskey(%!usages_inner, '') {
%kill<> := 1;
nqp::deletekey(%!decls, '');
}
}
if nqp::existskey(%!decls, '$_') {
my str $decl := %!decls<$_>.decl;
if $decl eq 'var' || $decl eq 'contvar' {
Expand Down

0 comments on commit 08d9122

Please sign in to comment.