refactor(ivy): remove unnecessary method from ngtsc's `RouterEntryPoint` (#28542)

PR Close #28542
This commit is contained in:
George Kalpakas 2019-01-30 11:50:38 +02:00 committed by Miško Hevery
parent 94b8aaeba8
commit 5db3a6b198
1 changed files with 3 additions and 4 deletions

View File

@ -15,10 +15,8 @@ export abstract class RouterEntryPoint {
abstract readonly moduleName: string;
// Alias of moduleName.
// Alias of moduleName for compatibility with what `ngtools_api` returned.
abstract readonly name: string;
abstract toString(): string;
}
class RouterEntryPointImpl implements RouterEntryPoint {
@ -26,7 +24,8 @@ class RouterEntryPointImpl implements RouterEntryPoint {
get name(): string { return this.moduleName; }
toString(): string { return `${this.filePath}#${this.moduleName}`; }
// For debugging purposes.
toString(): string { return `RouterEntryPoint(name: ${this.name}, filePath: ${this.filePath})`; }
}
export class RouterEntryPointManager {