From 33cef0d9cc863e856090b89a465d1c6e2a459dda Mon Sep 17 00:00:00 2001 From: Boopathi Rajaa Date: Thu, 2 Feb 2017 16:56:17 +0100 Subject: [PATCH] Remove unused unsafeScopes --- packages/babel-plugin-minify-mangle-names/src/index.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/packages/babel-plugin-minify-mangle-names/src/index.js b/packages/babel-plugin-minify-mangle-names/src/index.js index 808dab05b..a292b668c 100644 --- a/packages/babel-plugin-minify-mangle-names/src/index.js +++ b/packages/babel-plugin-minify-mangle-names/src/index.js @@ -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 }); @@ -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();