diff --git a/src/compiler/scanner.ts b/src/compiler/scanner.ts index 19b5d24c3f9..1b489bdd388 100644 --- a/src/compiler/scanner.ts +++ b/src/compiler/scanner.ts @@ -316,19 +316,6 @@ module ts { return computeLineAndCharacterOfPosition(getLineStarts(sourceFile), position); } - export function lineBreakBetween(sourceFile: SourceFile, firstPos: number, secondPos: number): boolean { - var lineStarts = getLineStarts(sourceFile); - var firstLine = binarySearch(lineStarts, firstPos); - var secondLine = binarySearch(lineStarts, secondPos); - if (firstLine < 0) { - firstLine = ~firstLine - 1; - } - if (secondLine < 0) { - secondLine = ~secondLine - 1; - } - return firstLine !== secondLine; - } - let hasOwnProperty = Object.prototype.hasOwnProperty; export function isWhiteSpace(ch: number): boolean {