Skip to content

Commit 1299c93

Browse files
committed
Remove unused (and incorrect) code in sys.ts
1 parent 7f3f98e commit 1299c93

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/compiler/sys.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -36,23 +36,6 @@ namespace ts {
3636
Low = 250
3737
}
3838

39-
function getPriorityValues(highPriorityValue: number): [number, number, number] {
40-
const mediumPriorityValue = highPriorityValue * 2;
41-
const lowPriorityValue = mediumPriorityValue * 4;
42-
return [highPriorityValue, mediumPriorityValue, lowPriorityValue];
43-
}
44-
45-
function pollingInterval(watchPriority: PollingInterval): number {
46-
return pollingIntervalsForPriority[watchPriority];
47-
}
48-
49-
const pollingIntervalsForPriority = getPriorityValues(250);
50-
51-
/* @internal */
52-
export function watchFileUsingPriorityPollingInterval(host: System, fileName: string, callback: FileWatcherCallback, watchPriority: PollingInterval): FileWatcher {
53-
return host.watchFile!(fileName, callback, pollingInterval(watchPriority));
54-
}
55-
5639
/* @internal */
5740
export type HostWatchFile = (fileName: string, callback: FileWatcherCallback, pollingInterval: PollingInterval | undefined) => FileWatcher;
5841
/* @internal */

0 commit comments

Comments
 (0)