Skip to content

Commit 09b095b

Browse files
author
Brian Chen
committed
Remove timerIdsToSkip
1 parent aaa6943 commit 09b095b

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

packages/firestore/src/util/async_queue.ts

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,6 @@ export class AsyncQueue {
206206
// assertion sanity-checks.
207207
private operationInProgress = false;
208208

209-
// List of TimerIds to fast-forward delays for.
210-
private timerIdsToSkip: TimerId[] = [];
211-
212209
// Is this AsyncQueue being shut down? If true, this instance will not enqueue
213210
// any new operations, Promises from enqueue requests will not resolve.
214211
get isShuttingDown(): boolean {
@@ -335,15 +332,6 @@ export class AsyncQueue {
335332
);
336333
this.delayedOperations.push(delayedOp as DelayedOperation<unknown>);
337334

338-
// Fast-forward delays for timerIds that have been overriden.
339-
for (const timerIdToSkip of this.timerIdsToSkip) {
340-
if (this.containsDelayedOperation(timerIdToSkip)) {
341-
this.runDelayedOperationsEarly(timerIdToSkip)
342-
.then(() => {})
343-
.catch(() => 'obligatory catch');
344-
}
345-
}
346-
347335
return delayedOp;
348336
}
349337

@@ -422,13 +410,6 @@ export class AsyncQueue {
422410
});
423411
}
424412

425-
/**
426-
* For Tests: Skip all delays for a timer id.
427-
*/
428-
skipDelaysForTimerId(timerId: TimerId): void {
429-
this.timerIdsToSkip.push(timerId);
430-
}
431-
432413
/** Called once a DelayedOperation is run or canceled. */
433414
private removeDelayedOperation(op: DelayedOperation<unknown>): void {
434415
// NOTE: indexOf / slice are O(n), but delayedOperations is expected to be small.

0 commit comments

Comments
 (0)