timers: remove unused variable
A recent commit removed the usage of the second argument of tryOnTimeout but left the definition in place. Remove it. PR-URL: https://github.com/nodejs/node/pull/18579 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This commit is contained in:
parent
b1c6ecb2c6
commit
1b05d7bc86
@ -260,7 +260,7 @@ TimerWrap.prototype[kOnTimeout] = function listOnTimeout(now) {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
tryOnTimeout(timer, list);
|
tryOnTimeout(timer);
|
||||||
}
|
}
|
||||||
|
|
||||||
// If `L.peek(list)` returned nothing, the list was either empty or we have
|
// If `L.peek(list)` returned nothing, the list was either empty or we have
|
||||||
@ -289,7 +289,7 @@ TimerWrap.prototype[kOnTimeout] = function listOnTimeout(now) {
|
|||||||
|
|
||||||
// An optimization so that the try/finally only de-optimizes (since at least v8
|
// An optimization so that the try/finally only de-optimizes (since at least v8
|
||||||
// 4.7) what is in this smaller function.
|
// 4.7) what is in this smaller function.
|
||||||
function tryOnTimeout(timer, list) {
|
function tryOnTimeout(timer) {
|
||||||
timer._called = true;
|
timer._called = true;
|
||||||
const timerAsyncId = (typeof timer[async_id_symbol] === 'number') ?
|
const timerAsyncId = (typeof timer[async_id_symbol] === 'number') ?
|
||||||
timer[async_id_symbol] : null;
|
timer[async_id_symbol] : null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user