wrap up
authorMihai Bazon <mihai@bazon.net>
Wed, 9 Oct 2013 19:15:43 +0000 (22:15 +0300)
committerMihai Bazon <mihai@bazon.net>
Wed, 9 Oct 2013 19:15:43 +0000 (22:15 +0300)
lib/compress.js

index 3502b23..d48af56 100644 (file)
@@ -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;