Skip to content

Commit 5b4836d

Browse files
committed
remove "lastId" as there is no usecase
1 parent bf4ec9c commit 5b4836d

2 files changed

Lines changed: 0 additions & 5 deletions

File tree

lib/Compilation.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,6 @@ class Compilation extends Tapable {
113113
cacheModule.errors.forEach(err => this.errors.push(err), this);
114114
cacheModule.warnings.forEach(err => this.warnings.push(err), this);
115115
return cacheModule;
116-
} else {
117-
module.lastId = cacheModule.id;
118116
}
119117
}
120118
module.unbuild();

lib/Module.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ class Module extends DependenciesBlock {
2525
this.context = null;
2626
this.reasons = [];
2727
this.debugId = debugId++;
28-
this.lastId = -1;
2928
this.id = null;
3029
this.portableId = null;
3130
this.index = null;
@@ -49,7 +48,6 @@ class Module extends DependenciesBlock {
4948

5049
disconnect() {
5150
this.reasons.length = 0;
52-
this.lastId = this.id;
5351
this.id = null;
5452
this.index = null;
5553
this.index2 = null;
@@ -64,7 +62,6 @@ class Module extends DependenciesBlock {
6462
}
6563

6664
unseal() {
67-
this.lastId = this.id;
6865
this.id = null;
6966
this.index = null;
7067
this.index2 = null;

0 commit comments

Comments
 (0)