mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-16 05:58:32 -06:00
Removed the (now unused) lineBreakBetween
This commit is contained in:
parent
6633349b72
commit
5e241a354d
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user