aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMihai Bazon <mihai@bazon.net>2013-10-09 22:15:43 +0300
committerMihai Bazon <mihai@bazon.net>2013-10-09 22:15:43 +0300
commit3fa9265ce43b1273f737b5606d0bb5d4643ef436 (patch)
treeff82a5135975476a0430dba32c190a41e876eb96 /lib
parent3a81f60982a7f20ef9bd75b851759793ffe1d270 (diff)
downloadtracifyjs-3fa9265ce43b1273f737b5606d0bb5d4643ef436.tar.gz
tracifyjs-3fa9265ce43b1273f737b5606d0bb5d4643ef436.zip
wrap up
Diffstat (limited to 'lib')
-rw-r--r--lib/compress.js8
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/compress.js b/lib/compress.js
index 3502b23e..d48af569 100644
--- a/lib/compress.js
+++ b/lib/compress.js
@@ -91,15 +91,7 @@ merge(Compressor.prototype, {
descend(node, this);
node = node.optimize(this);
if (node instanceof AST_Scope) {
- // dead code removal might leave further unused declarations.
- // this'll usually save very few bytes, but the performance
- // hit seems negligible so I'll just drop it here.
-
- // no point to repeat warnings.
- var save_warnings = this.options.warnings;
- this.options.warnings = false;
node.drop_unused(this);
- this.options.warnings = save_warnings;
}
node._squeezed = true;
return node;