Skip to content

Commit

Permalink
Remove unused unsafeScopes
Browse files Browse the repository at this point in the history
  • Loading branch information
boopathi committed Feb 2, 2017
1 parent a295703 commit 33cef0d
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions packages/babel-plugin-minify-mangle-names/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ module.exports = ({ types: t, traverse }) => {
this.eval = _eval;
this.reuse = reuse;

this.unsafeScopes = new Set;
this.visitedScopes = new Set;

this.tracker = new Tracker({ reuse });
Expand All @@ -51,13 +50,6 @@ module.exports = ({ types: t, traverse }) => {
return hop.call(this.blacklist, name) && this.blacklist[name];
}

markUnsafeScopes(scope) {
let evalScope = scope;
do {
this.unsafeScopes.add(evalScope);
} while (evalScope = evalScope.parent);
}

crawlScope() {
traverse.clearCache();
this.program.scope.crawl();
Expand Down

0 comments on commit 33cef0d

Please sign in to comment.