remove recursive collapse_single_use_vars()

- let `OPT(AST_Node)` do their job
This commit is contained in:
alexlamsl 2017-04-18 14:32:17 +08:00
parent 8264cdd15c
commit 7dd1e0f34b

View File

@ -647,11 +647,6 @@ merge(Compressor.prototype, {
for (var stat_index = statements.length; --stat_index >= 0;) {
var stat = statements[stat_index];
// Process child blocks of statement if present.
[stat, stat.body, stat.alternative, stat.bcatch, stat.bfinally].forEach(function(node) {
node && node.body && collapse_single_use_vars(node.body, compressor);
});
// The variable definition must precede a statement.
if (stat_index <= 0) break;
var prev_stat_index = stat_index - 1;