Skip to content

Commit

Permalink
style(compiler-cli): remove unused codes
Browse files Browse the repository at this point in the history
- Remove unused private property _programWithStubs
- Remove unused const codegen in _createProgramWithBasicStubs method
  • Loading branch information
ahnpnl committed Aug 14, 2020
1 parent ca79880 commit 477b1e2
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions packages/compiler-cli/src/transformers/program.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ class AngularCompilerProgram implements Program {
private _analyzedModules: NgAnalyzedModules|undefined;
private _analyzedInjectables: NgAnalyzedFileWithInjectables[]|undefined;
private _structuralDiagnostics: Diagnostic[]|undefined;
private _programWithStubs: ts.Program|undefined;
private _optionsDiagnostics: Diagnostic[] = [];
private _transformTsDiagnostics: ts.Diagnostic[] = [];

Expand Down Expand Up @@ -594,13 +593,6 @@ class AngularCompilerProgram implements Program {
const oldTsProgram = this.oldTsProgram;
this.oldTsProgram = undefined;

const codegen: CodeGenerator = {
generateFile: (genFileName, baseFileName) =>
this.compiler.emitBasicStub(genFileName, baseFileName),
findGeneratedFileNames: (fileName) => this.compiler.findGeneratedFileNames(fileName),
};


let rootNames = [...this.rootNames];
if (this.options.generateCodeForLibraries !== false) {
// if we should generateCodeForLibraries, never include
Expand Down

0 comments on commit 477b1e2

Please sign in to comment.