mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
refactor(compiler-cli): remove unused closureCompilerEnabled from NgtscProgram (#43148)
remove the NgtscProgram's private field closureCompilerEnabled as that is not being used in the class itself PR Close #43148
This commit is contained in:
committed by
Dylan Hunn
parent
b9fd76e257
commit
cf338493bf
@@ -37,7 +37,6 @@ export class NgtscProgram implements api.Program {
|
||||
*/
|
||||
private tsProgram: ts.Program;
|
||||
|
||||
private closureCompilerEnabled: boolean;
|
||||
private host: NgCompilerHost;
|
||||
private incrementalStrategy: TrackedIncrementalBuildStrategy;
|
||||
|
||||
@@ -53,8 +52,6 @@ export class NgtscProgram implements api.Program {
|
||||
verifySupportedTypeScriptVersion();
|
||||
}
|
||||
|
||||
this.closureCompilerEnabled = !!options.annotateForClosureCompiler;
|
||||
|
||||
const reuseProgram = oldProgram?.compiler.getCurrentProgram();
|
||||
this.host = NgCompilerHost.wrap(delegateHost, rootNames, options, reuseProgram ?? null);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user