From c77f09b1748019e53c483040b168dfa5be34f5ca 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 --- packager/src/Server/index.js | 4 ---- packager/src/node-haste/index.js | 4 ---- 2 files changed, 8 deletions(-) diff --git a/packager/src/Server/index.js b/packager/src/Server/index.js index c77bea8db..7fc1f12fb 100644 --- a/packager/src/Server/index.js +++ b/packager/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/packager/src/node-haste/index.js b/packager/src/node-haste/index.js index 73b6da53f..b25d982ef 100644 --- a/packager/src/node-haste/index.js +++ b/packager/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;