summaryrefslogtreecommitdiff
path: root/deps/uv/src/win/poll.c
diff options
context:
space:
mode:
Diffstat (limited to 'deps/uv/src/win/poll.c')
-rw-r--r--deps/uv/src/win/poll.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/deps/uv/src/win/poll.c b/deps/uv/src/win/poll.c
index 82197241c1..f6972f9673 100644
--- a/deps/uv/src/win/poll.c
+++ b/deps/uv/src/win/poll.c
@@ -311,7 +311,7 @@ static SOCKET uv__fast_poll_get_peer_socket(uv_loop_t* loop,
static DWORD WINAPI uv__slow_poll_thread_proc(void* arg) {
uv_req_t* req = (uv_req_t*) arg;
uv_poll_t* handle = (uv_poll_t*) req->data;
- unsigned char events, reported_events;
+ unsigned char reported_events;
int r;
uv_single_fd_set_t rfds, wfds, efds;
struct timeval timeout;
@@ -319,14 +319,6 @@ static DWORD WINAPI uv__slow_poll_thread_proc(void* arg) {
assert(handle->type == UV_POLL);
assert(req->type == UV_POLL_REQ);
- if (req == &handle->poll_req_1) {
- events = handle->submitted_events_1;
- } else if (req == &handle->poll_req_2) {
- events = handle->submitted_events_2;
- } else {
- assert(0);
- }
-
if (handle->events & UV_READABLE) {
rfds.fd_count = 1;
rfds.fd_array[0] = handle->socket;