Skip to content

Commit 1b05d7b

Browse files
committed
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: #18579 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
1 parent b1c6ecb commit 1b05d7b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/timers.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ TimerWrap.prototype[kOnTimeout] = function listOnTimeout(now) {
260260
continue;
261261
}
262262

263-
tryOnTimeout(timer, list);
263+
tryOnTimeout(timer);
264264
}
265265

266266
// If `L.peek(list)` returned nothing, the list was either empty or we have
@@ -289,7 +289,7 @@ TimerWrap.prototype[kOnTimeout] = function listOnTimeout(now) {
289289

290290
// An optimization so that the try/finally only de-optimizes (since at least v8
291291
// 4.7) what is in this smaller function.
292-
function tryOnTimeout(timer, list) {
292+
function tryOnTimeout(timer) {
293293
timer._called = true;
294294
const timerAsyncId = (typeof timer[async_id_symbol] === 'number') ?
295295
timer[async_id_symbol] : null;

0 commit comments

Comments
 (0)