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
This commit is contained in:
Konstantin Raev 2016-06-01 06:16:51 -07:00 committed by Facebook Github Bot 1
parent fb050c4520
commit ff01465701
2 changed files with 0 additions and 12 deletions

View File

@ -22,7 +22,6 @@ class Bundle extends BundleBase {
this._sourceMap = false; this._sourceMap = false;
this._sourceMapUrl = sourceMapUrl; this._sourceMapUrl = sourceMapUrl;
this._shouldCombineSourceMaps = false; this._shouldCombineSourceMaps = false;
this._numPrependedModules = 0;
this._numRequireCalls = 0; this._numRequireCalls = 0;
this._dev = dev; this._dev = dev;
this._minify = minify; this._minify = minify;
@ -53,10 +52,6 @@ class Bundle extends BundleBase {
}); });
} }
setNumPrependedModules(n) {
this._numPrependedModules = n;
}
finalize(options) { finalize(options) {
options = options || {}; options = options || {};
if (options.runMainModule) { if (options.runMainModule) {
@ -277,7 +272,6 @@ class Bundle extends BundleBase {
return { return {
...super.toJSON(), ...super.toJSON(),
sourceMapUrl: this._sourceMapUrl, sourceMapUrl: this._sourceMapUrl,
numPrependedModules: this._numPrependedModules,
numRequireCalls: this._numRequireCalls, numRequireCalls: this._numRequireCalls,
shouldCombineSourceMaps: this._shouldCombineSourceMaps, shouldCombineSourceMaps: this._shouldCombineSourceMaps,
}; };
@ -287,7 +281,6 @@ class Bundle extends BundleBase {
const bundle = new Bundle({sourceMapUrl: json.sourceMapUrl}); const bundle = new Bundle({sourceMapUrl: json.sourceMapUrl});
bundle._sourceMapUrl = json.sourceMapUrl; bundle._sourceMapUrl = json.sourceMapUrl;
bundle._numPrependedModules = json.numPrependedModules;
bundle._numRequireCalls = json.numRequireCalls; bundle._numRequireCalls = json.numRequireCalls;
bundle._shouldCombineSourceMaps = json.shouldCombineSourceMaps; bundle._shouldCombineSourceMaps = json.shouldCombineSourceMaps;

View File

@ -250,11 +250,6 @@ class Bundler {
}) { }) {
const onResolutionResponse = response => { const onResolutionResponse = response => {
bundle.setMainModuleId(response.getModuleId(getMainModule(response))); bundle.setMainModuleId(response.getModuleId(getMainModule(response)));
if (bundle.setNumPrependedModules) {
bundle.setNumPrependedModules(
response.numPrependedDependencies + moduleSystemDeps.length
);
}
if (entryModuleOnly) { if (entryModuleOnly) {
response.dependencies = response.dependencies.filter(module => response.dependencies = response.dependencies.filter(module =>
module.path.endsWith(entryFile) module.path.endsWith(entryFile)