From ad279df7c08d01b8c683090e955bf628a8aa3bc1 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Tue, 22 May 2012 01:01:38 +0200 Subject: [PATCH] Unix: remove superfluous variable from uv_poll_start --- src/unix/poll.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/unix/poll.c b/src/unix/poll.c index 2c921278..45def2c1 100644 --- a/src/unix/poll.c +++ b/src/unix/poll.c @@ -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))); @@ -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);