refactor(language-service): Remove unused class and method (#31597)

PR Close #31597
This commit is contained in:
Keen Yee Liau 2019-07-16 13:51:14 -07:00 committed by Miško Hevery
parent b9a94c6d02
commit ce196105ce
1 changed files with 0 additions and 9 deletions

View File

@ -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};
}