aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-06-27 17:44:42 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-06-27 17:44:42 -0700
commitf4114f4ca9547431f363e2186e0d5701f150a0c2 (patch)
tree227a77dd654e86619ae33bc5b258d3b79e9f403e
parentc600d4a52ae072d389aef7c0ea9796475c556337 (diff)
parente4afb5db4c72194126aa0aae98c118c55ac8a9ff (diff)
Merge pull request #1331 from int3/incoming
Remove old code.
-rw-r--r--tools/js-optimizer.js2
1 files changed, 0 insertions, 2 deletions
diff --git a/tools/js-optimizer.js b/tools/js-optimizer.js
index 4829fec8..be5accbc 100644
--- a/tools/js-optimizer.js
+++ b/tools/js-optimizer.js
@@ -2037,7 +2037,6 @@ function eliminate(ast, memSafe) {
// examine body and note locals
var hasSwitch = false;
traverse(func, function(node, type) {
- if (debug && type) type = type.toString();
if (type === 'var') {
var node1 = node[1];
for (var i = 0; i < node1.length; i++) {
@@ -2647,7 +2646,6 @@ function eliminate(ast, memSafe) {
var has_num = false;
var fail = false;
traverse(node, function(subNode, subType) {
- if (debug && subType) subType = subType.toString();
if (subType === 'binary') {
if (subNode[1] !== '+') {
fail = true;