Remove dead code in Compilation.js

This commit is contained in:
Mohsen Azimi 2018-03-27 22:23:47 -07:00
parent 54ceb3c04d
commit 847bfa4c63
No known key found for this signature in database
GPG Key ID: 59DEE7A8A4D05E21
1 changed files with 0 additions and 22 deletions

View File

@ -276,28 +276,6 @@ class Compilation extends Tapable {
const cacheName = (cacheGroup || "m") + identifier;
if (this.cache && this.cache[cacheName]) {
const cacheModule = this.cache[cacheName];
let rebuild = true;
if (this.fileTimestamps && this.contextTimestamps) {
rebuild = cacheModule.needRebuild(
this.fileTimestamps,
this.contextTimestamps
);
}
if (!rebuild) {
cacheModule.disconnect();
this._modules.set(identifier, cacheModule);
this.modules.push(cacheModule);
for (const err of cacheModule.errors) this.errors.push(err);
for (const err of cacheModule.warnings) this.warnings.push(err);
return {
module: cacheModule,
issuer: true,
build: false,
dependencies: true
};
}
cacheModule.unbuild();
module = cacheModule;
}