From 7fd403998cfd15abf21ae87f417ea18ba0b108f9 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Sat, 30 May 2015 22:32:48 -0400 Subject: [PATCH] remove dead code --- src/babel/traversal/scope/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/babel/traversal/scope/index.js b/src/babel/traversal/scope/index.js index 1edf810b93..3910a69989 100644 --- a/src/babel/traversal/scope/index.js +++ b/src/babel/traversal/scope/index.js @@ -82,7 +82,7 @@ var collectorVisitor = { if (node.operator === "delete") scope.registerConstantViolation(this.get("left"), null); }, - BlockScoped(node, parent, scope, state) { + BlockScoped(node, parent, scope) { if (scope.path === this) scope = scope.parent; scope.getBlockParent().registerDeclaration(this); } @@ -317,7 +317,6 @@ export default class Scope { if (!duplicate) duplicate = local.kind === "param" && (kind === "let" || kind === "const"); if (duplicate) { - this.dump(); throw this.file.errorWithNode(id, messages.get("scopeDuplicateDeclaration", name), TypeError); } }