Skip to content

Commit 0035ca1

Browse files
committed
refactor(ivy): remove unnecessary method from ngtsc's RouterEntryPoint
1 parent 50732e1 commit 0035ca1

File tree

1 file changed

+1
-5
lines changed
  • packages/compiler-cli/src/ngtsc/routing/src

1 file changed

+1
-5
lines changed

packages/compiler-cli/src/ngtsc/routing/src/route.ts

+1-5
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,14 @@ export abstract class RouterEntryPoint {
1515

1616
abstract readonly moduleName: string;
1717

18-
// Alias of moduleName.
18+
// Alias of moduleName for compatibility with what `ngtools_api` returned.
1919
abstract readonly name: string;
20-
21-
abstract toString(): string;
2220
}
2321

2422
class RouterEntryPointImpl implements RouterEntryPoint {
2523
constructor(readonly filePath: string, readonly moduleName: string) {}
2624

2725
get name(): string { return this.moduleName; }
28-
29-
toString(): string { return `${this.filePath}#${this.moduleName}`; }
3026
}
3127

3228
export class RouterEntryPointManager {

0 commit comments

Comments
 (0)