events: remove unreachable code
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), orvcbuild test
(Windows) passes -
commit message follows commit guidelines
Affected core subsystem(s)
events