MCPcopy Index your code
hub / github.com/nodejs/node / remove

Method remove

lib/internal/timers.js:309–325  ·  view source on GitHub ↗
(item)

Source from the content-addressed store, hash-verified

307 // Removes an item from the linked list, adjusting the pointers of adjacent
308 // items and the linked list's head or tail pointers as necessary
309 remove(item) {
310 if (item._idleNext) {
311 item._idleNext._idlePrev = item._idlePrev;
312 }
313
314 if (item._idlePrev) {
315 item._idlePrev._idleNext = item._idleNext;
316 }
317
318 if (item === this.head)
319 this.head = item._idleNext;
320 if (item === this.tail)
321 this.tail = item._idlePrev;
322
323 item._idleNext = null;
324 item._idlePrev = null;
325 }
326}
327
328// Create a single linked list instance only once at startup

Callers 7

unenrollFunction · 0.45
clearImmediateFunction · 0.45
freeParserFunction · 0.45
domain.jsFile · 0.45
listOnTimeoutFunction · 0.45
removeHandlesForWorkerFunction · 0.45
closeFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected