From ce129ac6e29d5b2c81797dac6e00292800a0088e Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Thu, 3 May 2012 19:33:54 +0200 Subject: [PATCH] windows: remove unused variables --- src/win/cares.c | 2 -- src/win/timer.c | 1 - src/win/tty.c | 3 --- 3 files changed, 6 deletions(-) diff --git a/src/win/cares.c b/src/win/cares.c index 1592d123..d86cb325 100644 --- a/src/win/cares.c +++ b/src/win/cares.c @@ -108,8 +108,6 @@ static void uv_ares_sockstate_cb(void *data, ares_socket_t sock, int read, uv_loop_t* loop = (uv_loop_t*) data; uv_ares_task_t* uv_handle_ares = uv_find_ares_handle(loop, sock); - int timeoutms = 0; - if (read == 0 && write == 0) { /* if read and write are 0, cleanup existing data */ /* The code assumes that c-ares does a callback with read = 0 and */ diff --git a/src/win/timer.c b/src/win/timer.c index 555d71ea..dc2034b6 100644 --- a/src/win/timer.c +++ b/src/win/timer.c @@ -31,7 +31,6 @@ /* The resolution of the high-resolution clock. */ -static int64_t uv_ticks_per_msec_ = 0; static uint64_t uv_hrtime_frequency_ = 0; static uv_once_t uv_hrtime_init_guard_ = UV_ONCE_INIT; diff --git a/src/win/tty.c b/src/win/tty.c index 5bf90bec..6f6aac87 100644 --- a/src/win/tty.c +++ b/src/win/tty.c @@ -960,9 +960,6 @@ static int uv_tty_reset(uv_tty_t* handle, DWORD* error) { static int uv_tty_clear(uv_tty_t* handle, int dir, char entire_screen, DWORD* error) { - unsigned short argc = handle->ansi_csi_argc; - unsigned short* argv = handle->ansi_csi_argv; - CONSOLE_SCREEN_BUFFER_INFO info; COORD start, end; DWORD count, written;