Skip to content

Commit 847bfa4

Browse files
author
Mohsen Azimi
committed
Remove dead code in Compilation.js
1 parent 54ceb3c commit 847bfa4

1 file changed

Lines changed: 0 additions & 22 deletions

File tree

lib/Compilation.js

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -276,28 +276,6 @@ class Compilation extends Tapable {
276276
const cacheName = (cacheGroup || "m") + identifier;
277277
if (this.cache && this.cache[cacheName]) {
278278
const cacheModule = this.cache[cacheName];
279-
280-
let rebuild = true;
281-
if (this.fileTimestamps && this.contextTimestamps) {
282-
rebuild = cacheModule.needRebuild(
283-
this.fileTimestamps,
284-
this.contextTimestamps
285-
);
286-
}
287-
288-
if (!rebuild) {
289-
cacheModule.disconnect();
290-
this._modules.set(identifier, cacheModule);
291-
this.modules.push(cacheModule);
292-
for (const err of cacheModule.errors) this.errors.push(err);
293-
for (const err of cacheModule.warnings) this.warnings.push(err);
294-
return {
295-
module: cacheModule,
296-
issuer: true,
297-
build: false,
298-
dependencies: true
299-
};
300-
}
301279
cacheModule.unbuild();
302280
module = cacheModule;
303281
}

0 commit comments

Comments
 (0)