unix: remove unused code in uv__io_start
The code path in `uv__io_start` cannot be reached because `pevents` is always non-zero at that point. PR-URL: https://github.com/libuv/libuv/pull/1227 Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
This commit is contained in:
parent
02dcde0838
commit
52ae826492
@ -839,13 +839,8 @@ void uv__io_start(uv_loop_t* loop, uv__io_t* w, unsigned int events) {
|
||||
* every tick of the event loop but the other backends allow us to
|
||||
* short-circuit here if the event mask is unchanged.
|
||||
*/
|
||||
if (w->events == w->pevents) {
|
||||
if (w->events == 0 && !QUEUE_EMPTY(&w->watcher_queue)) {
|
||||
QUEUE_REMOVE(&w->watcher_queue);
|
||||
QUEUE_INIT(&w->watcher_queue);
|
||||
}
|
||||
if (w->events == w->pevents)
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (QUEUE_EMPTY(&w->watcher_queue))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user