Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Unix: remove superfluous variable from uv_poll_start
  • Loading branch information
piscisaureus committed May 21, 2012
1 parent 6fd9bfb commit ad279df
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/unix/poll.c
Expand Up @@ -88,7 +88,6 @@ int uv_poll_stop(uv_poll_t* handle) {

int uv_poll_start(uv_poll_t* handle, int events, uv_poll_cb poll_cb) {
int ev_events;
int was_active;

assert((events & ~(UV_READABLE | UV_WRITABLE)) == 0);
assert(!(handle->flags & (UV_CLOSING | UV_CLOSED)));
Expand All @@ -104,8 +103,6 @@ int uv_poll_start(uv_poll_t* handle, int events, uv_poll_cb poll_cb) {
if (events & UV_WRITABLE)
ev_events |= EV_WRITE;

was_active = ev_is_active(&handle->io_watcher);

ev_io_set(&handle->io_watcher, handle->fd, ev_events);
ev_io_start(handle->loop->ev, &handle->io_watcher);

Expand Down

0 comments on commit ad279df

Please sign in to comment.