Remove duplicate code

This commit is contained in:
zodern
2021-06-11 13:37:55 -05:00
parent cbc1d6002b
commit 72d487f535

View File

@@ -1177,26 +1177,6 @@ class Target {
// ImportScanner's knowledge of which modules are really imported.
this.watchSet.merge(entry.importScannerWatchSet);
}
// Any source resource that the content or hash was accessed for are marked
// as definitely used.
// If there are any output resources for these in the js output, they are
// excluded from the importScannerWatchSet so they are only marked as
// definitely used if their content was used, not if they are added
// to the built app.
unibuild.resources.forEach(resource => {
if (resource.type !== 'source' || resource._dataUsed === false) {
return;
}
assert.strictEqual(
typeof resource._dataUsed,
"boolean"
);
let absPath = files.pathJoin(sourceRoot, resource.path);
this.watchSet.addFile(absPath, resource.hash);
});
});
if (buildmessage.jobHasMessages()) {