diff options
author | Mihai Bazon <mihai@bazon.net> | 2013-07-25 18:08:36 +0300 |
---|---|---|
committer | Mihai Bazon <mihai@bazon.net> | 2013-07-25 18:08:36 +0300 |
commit | 41c627379c31b4886091f19fc8385cd8619e645a (patch) | |
tree | 01d6eb5082dc04ea323ab154e3747259e0b5640c | |
parent | e54df2226f7f3887d2f850cea8caf5c0353dce00 (diff) | |
download | tracifyjs-41c627379c31b4886091f19fc8385cd8619e645a.tar.gz tracifyjs-41c627379c31b4886091f19fc8385cd8619e645a.zip |
Reverting "added option for dropping unused params"
Revert "added option for dropping unused params"
(turns out we already had the `unused` option for this.)
This reverts commit e54df2226f7f3887d2f850cea8caf5c0353dce00.
-rw-r--r-- | lib/compress.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/compress.js b/lib/compress.js index c07ccd33..9eed8280 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -67,7 +67,6 @@ function Compressor(options, false_by_default) { cascade : !false_by_default, side_effects : !false_by_default, screw_ie8 : false, - drop_unused : !false_by_default, warnings : true, global_defs : {} @@ -84,7 +83,7 @@ merge(Compressor.prototype, { before: function(node, descend, in_list) { if (node._squeezed) return node; if (node instanceof AST_Scope) { - if (this.options.drop_unused) node.drop_unused(this); + node.drop_unused(this); node = node.hoist_declarations(this); } descend(node, this); @@ -97,7 +96,7 @@ merge(Compressor.prototype, { // no point to repeat warnings. var save_warnings = this.options.warnings; this.options.warnings = false; - if (this.options.drop_unused) node.drop_unused(this); + node.drop_unused(this); this.options.warnings = save_warnings; } node._squeezed = true; |