Skip to content

Commit fdc4689

Browse files
author
Andy
authored
Remove unused function (#22848)
1 parent 3710218 commit fdc4689

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

Diff for: src/compiler/core.ts

-17
Original file line numberDiff line numberDiff line change
@@ -623,23 +623,6 @@ namespace ts {
623623
};
624624
}
625625

626-
/**
627-
* Computes the first matching span of elements and returns a tuple of the first span
628-
* and the remaining elements.
629-
*/
630-
export function span<T>(array: ReadonlyArray<T>, f: (x: T, i: number) => boolean): [T[], T[]] {
631-
if (array) {
632-
for (let i = 0; i < array.length; i++) {
633-
if (!f(array[i], i)) {
634-
return [array.slice(0, i), array.slice(i)];
635-
}
636-
}
637-
return [array.slice(0), []];
638-
}
639-
640-
return undefined;
641-
}
642-
643626
/**
644627
* Maps contiguous spans of values with the same key.
645628
*

0 commit comments

Comments
 (0)