Removed the (now unused) lineBreakBetween

This commit is contained in:
Ron Buckton 2015-03-23 10:53:29 -07:00
parent 6633349b72
commit 5e241a354d

View File

@ -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 {