From 4a6efee4ceed1d77a6c17e9a7c3e0e2dd9305c39 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Thu, 14 Jul 2011 02:44:53 +0200 Subject: [PATCH] uv-win: get rid of unused variables --- src/uv-win.c | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/src/uv-win.c b/src/uv-win.c index 2b09faec..dad3e438 100644 --- a/src/uv-win.c +++ b/src/uv-win.c @@ -1642,9 +1642,6 @@ static void uv_process_tcp_read_req(uv_tcp_t* handle, uv_req_t* req) { static void uv_process_tcp_write_req(uv_tcp_t* handle, uv_req_t* req) { - DWORD bytes, flags, err; - uv_buf_t buf; - assert(handle->type == UV_TCP); /* Mark the request non-pending */ @@ -1668,9 +1665,6 @@ static void uv_process_tcp_write_req(uv_tcp_t* handle, uv_req_t* req) { static void uv_process_tcp_accept_req(uv_tcp_t* handle, uv_req_t* req) { - DWORD bytes, flags, err; - uv_buf_t buf; - assert(handle->type == UV_TCP); /* Mark the request non-pending */ @@ -1713,9 +1707,6 @@ static void uv_process_tcp_accept_req(uv_tcp_t* handle, uv_req_t* req) { static void uv_process_tcp_connect_req(uv_tcp_t* handle, uv_req_t* req) { - DWORD bytes, flags, err; - uv_buf_t buf; - assert(handle->type == UV_TCP); /* Mark the request non-pending */ @@ -1747,7 +1738,6 @@ static void uv_process_tcp_connect_req(uv_tcp_t* handle, uv_req_t* req) { static void uv_process_pipe_read_req(uv_pipe_t* handle, uv_req_t* req) { DWORD bytes, err, mode; uv_buf_t buf; - uv_pipe_instance_t* acceptingConn; assert(handle->type == UV_NAMED_PIPE); @@ -1845,10 +1835,6 @@ static void uv_process_pipe_read_req(uv_pipe_t* handle, uv_req_t* req) { static void uv_process_pipe_write_req(uv_pipe_t* handle, uv_req_t* req) { - DWORD bytes, err, mode; - uv_buf_t buf; - uv_pipe_instance_t* acceptingConn; - assert(handle->type == UV_NAMED_PIPE); /* Mark the request non-pending */ @@ -1872,10 +1858,6 @@ static void uv_process_pipe_write_req(uv_pipe_t* handle, uv_req_t* req) { static void uv_process_pipe_accept_req(uv_pipe_t* handle, uv_req_t* req) { - DWORD bytes, err, mode; - uv_buf_t buf; - uv_pipe_instance_t* acceptingConn; - assert(handle->type == UV_NAMED_PIPE); /* Mark the request non-pending */ @@ -1901,10 +1883,6 @@ static void uv_process_pipe_accept_req(uv_pipe_t* handle, uv_req_t* req) { static void uv_process_pipe_connect_req(uv_pipe_t* handle, uv_req_t* req) { - DWORD bytes, err, mode; - uv_buf_t buf; - uv_pipe_instance_t* acceptingConn; - assert(handle->type == UV_NAMED_PIPE); /* Mark the request non-pending */ @@ -2514,8 +2492,6 @@ void uv_ares_sockstate_cb(void *data, ares_socket_t sock, int read, int write) { uv_ares_task_t* uv_handle_ares = uv_find_ares_handle(sock); uv_ares_channel_t* uv_ares_data_ptr = (uv_ares_channel_t*)data; - struct timeval tv; - struct timeval* tvptr; int timeoutms = 0; if (read == 0 && write == 0) {