From 5b4836d185b3f127e686dc5628ace6e7f8dda53a Mon Sep 17 00:00:00 2001 From: Tim Sebastian Date: Wed, 21 Jun 2017 22:22:00 +1000 Subject: [PATCH] remove "lastId" as there is no usecase --- lib/Compilation.js | 2 -- lib/Module.js | 3 --- 2 files changed, 5 deletions(-) diff --git a/lib/Compilation.js b/lib/Compilation.js index 7c0937848ef..8fcbea75f45 100644 --- a/lib/Compilation.js +++ b/lib/Compilation.js @@ -113,8 +113,6 @@ class Compilation extends Tapable { cacheModule.errors.forEach(err => this.errors.push(err), this); cacheModule.warnings.forEach(err => this.warnings.push(err), this); return cacheModule; - } else { - module.lastId = cacheModule.id; } } module.unbuild(); diff --git a/lib/Module.js b/lib/Module.js index f0f25334e1c..e73f21c9376 100644 --- a/lib/Module.js +++ b/lib/Module.js @@ -25,7 +25,6 @@ class Module extends DependenciesBlock { this.context = null; this.reasons = []; this.debugId = debugId++; - this.lastId = -1; this.id = null; this.portableId = null; this.index = null; @@ -49,7 +48,6 @@ class Module extends DependenciesBlock { disconnect() { this.reasons.length = 0; - this.lastId = this.id; this.id = null; this.index = null; this.index2 = null; @@ -64,7 +62,6 @@ class Module extends DependenciesBlock { } unseal() { - this.lastId = this.id; this.id = null; this.index = null; this.index2 = null;