From a826db50a84b8625bb055ec535f66b382fc1df63 Mon Sep 17 00:00:00 2001 From: Jean Lauliac Date: Mon, 6 Mar 2017 06:37:55 -0800 Subject: [PATCH] packager: node-haste: remove getHasteMap() Reviewed By: davidaurelio Differential Revision: D4597906 fbshipit-source-id: 4e239d0278fd79a8c60944b71e127e5a335b066f --- packages/metro-bundler/src/Server/index.js | 4 ---- packages/metro-bundler/src/node-haste/index.js | 4 ---- 2 files changed, 8 deletions(-) diff --git a/packages/metro-bundler/src/Server/index.js b/packages/metro-bundler/src/Server/index.js index c77bea8d..7fc1f12f 100644 --- a/packages/metro-bundler/src/Server/index.js +++ b/packages/metro-bundler/src/Server/index.js @@ -257,10 +257,6 @@ class Server { 'change', ({eventsQueue}) => eventsQueue.forEach(processFileChange), ); - dependencyGraph.getHasteMap().on('change', () => { - debug('Clearing bundle cache due to haste map change'); - this._clearBundles(); - }); }); this._debouncedFileChangeHandler = debounceAndBatch(filePaths => { diff --git a/packages/metro-bundler/src/node-haste/index.js b/packages/metro-bundler/src/node-haste/index.js index 73b6da53..b25d982e 100644 --- a/packages/metro-bundler/src/node-haste/index.js +++ b/packages/metro-bundler/src/node-haste/index.js @@ -325,10 +325,6 @@ class DependencyGraph extends EventEmitter { return this._moduleCache.createPolyfill(options); } - getHasteMap() { - return this._hasteMap; - } - static Cache; static Module; static Polyfill;