Skip to content

events: remove unreachable code

Rodrigo Muino Tomonari requested to merge github/fork/cjihrig/unreachable into master

Commit 8d386ed7 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.

The effects of 8d386ed7 on code coverage can be seen by comparing before and after.

Refs: https://github.com/nodejs/node/pull/12043

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines
Affected core subsystem(s)

events

Merge request reports

Loading