From ce196105ce21931dd15b1b5252685ae2a37f6d98 Mon Sep 17 00:00:00 2001 From: Keen Yee Liau Date: Tue, 16 Jul 2019 13:51:14 -0700 Subject: [PATCH] refactor(language-service): Remove unused class and method (#31597) PR Close #31597 --- packages/language-service/src/typescript_host.ts | 9 --------- 1 file changed, 9 deletions(-) diff --git a/packages/language-service/src/typescript_host.ts b/packages/language-service/src/typescript_host.ts index 81340d0d67..bec46d2623 100644 --- a/packages/language-service/src/typescript_host.ts +++ b/packages/language-service/src/typescript_host.ts @@ -704,15 +704,6 @@ function spanAt(sourceFile: ts.SourceFile, line: number, column: number): Span|u } } -function chainedMessage(chain: DiagnosticMessageChain, indent = ''): string { - return indent + chain.message + (chain.next ? chainedMessage(chain.next, indent + ' ') : ''); -} - -class DiagnosticMessageChainImpl implements DiagnosticMessageChain { - constructor(public message: string, public next?: DiagnosticMessageChain) {} - toString(): string { return chainedMessage(this); } -} - function convertChain(chain: FormattedMessageChain): DiagnosticMessageChain { return {message: chain.message, next: chain.next ? convertChain(chain.next) : undefined}; }