mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-19 10:41:56 -05:00
Removed the (now unused) lineBreakBetween
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user