From ff0146570183a555b3c0e5c9d18922840077a63e Mon Sep 17 00:00:00 2001 From: Konstantin Raev Date: Wed, 1 Jun 2016 06:16:51 -0700 Subject: [PATCH] removed unused code: _numPrependedModules Summary: cc davidaurelio Closes https://github.com/facebook/react-native/pull/7873 Differential Revision: D3371406 Pulled By: javache fbshipit-source-id: 72ed3838a88022ae5c0832dcca5abda75f18dbe1 --- react-packager/src/Bundler/Bundle.js | 7 ------- react-packager/src/Bundler/index.js | 5 ----- 2 files changed, 12 deletions(-) diff --git a/react-packager/src/Bundler/Bundle.js b/react-packager/src/Bundler/Bundle.js index c3cdc804..ccaaffa8 100644 --- a/react-packager/src/Bundler/Bundle.js +++ b/react-packager/src/Bundler/Bundle.js @@ -22,7 +22,6 @@ class Bundle extends BundleBase { this._sourceMap = false; this._sourceMapUrl = sourceMapUrl; this._shouldCombineSourceMaps = false; - this._numPrependedModules = 0; this._numRequireCalls = 0; this._dev = dev; this._minify = minify; @@ -53,10 +52,6 @@ class Bundle extends BundleBase { }); } - setNumPrependedModules(n) { - this._numPrependedModules = n; - } - finalize(options) { options = options || {}; if (options.runMainModule) { @@ -277,7 +272,6 @@ class Bundle extends BundleBase { return { ...super.toJSON(), sourceMapUrl: this._sourceMapUrl, - numPrependedModules: this._numPrependedModules, numRequireCalls: this._numRequireCalls, shouldCombineSourceMaps: this._shouldCombineSourceMaps, }; @@ -287,7 +281,6 @@ class Bundle extends BundleBase { const bundle = new Bundle({sourceMapUrl: json.sourceMapUrl}); bundle._sourceMapUrl = json.sourceMapUrl; - bundle._numPrependedModules = json.numPrependedModules; bundle._numRequireCalls = json.numRequireCalls; bundle._shouldCombineSourceMaps = json.shouldCombineSourceMaps; diff --git a/react-packager/src/Bundler/index.js b/react-packager/src/Bundler/index.js index 029846b1..8b411be9 100644 --- a/react-packager/src/Bundler/index.js +++ b/react-packager/src/Bundler/index.js @@ -250,11 +250,6 @@ class Bundler { }) { const onResolutionResponse = response => { bundle.setMainModuleId(response.getModuleId(getMainModule(response))); - if (bundle.setNumPrependedModules) { - bundle.setNumPrependedModules( - response.numPrependedDependencies + moduleSystemDeps.length - ); - } if (entryModuleOnly) { response.dependencies = response.dependencies.filter(module => module.path.endsWith(entryFile)