Commit 046bd79
events: remove unreachable code
Commit 8d386ed stopped the
Event Emitter implementation from storing arrays containing a
single listener. This change left a section of code in
removeListener() as unreachable. This commit removes the
unreachable code.
Refs: #12043
PR-URL: #12501
Backport-PR-URL: #13796
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent 8bf64d1 commit 046bd79
1 file changed
+5
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
349 | 349 | | |
350 | 350 | | |
351 | 351 | | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
| 352 | + | |
360 | 353 | | |
361 | | - | |
362 | | - | |
363 | | - | |
| 354 | + | |
364 | 355 | | |
365 | | - | |
366 | | - | |
367 | | - | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
368 | 359 | | |
369 | 360 | | |
370 | 361 | | |
| |||
0 commit comments