(item)
| 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 |
no outgoing calls
no test coverage detected