From e1b65a6edb9f96a12818d0ebc3e8184fd087bee6 Mon Sep 17 00:00:00 2001 From: Nguyen Anh Quynh Date: Sat, 19 Nov 2016 23:48:23 +0800 Subject: [PATCH] cleanup unused code --- qemu/target-i386/misc_helper.c | 2 -- qemu/util/oslib-win32.c | 10 ---------- 2 files changed, 12 deletions(-) diff --git a/qemu/target-i386/misc_helper.c b/qemu/target-i386/misc_helper.c index ef287fc7..2704fea7 100644 --- a/qemu/target-i386/misc_helper.c +++ b/qemu/target-i386/misc_helper.c @@ -566,7 +566,6 @@ void helper_monitor(CPUX86State *env, target_ulong ptr) void helper_mwait(CPUX86State *env, int next_eip_addend) { - CPUState *cs; X86CPU *cpu; if ((uint32_t)env->regs[R_ECX] != 0) { @@ -576,7 +575,6 @@ void helper_mwait(CPUX86State *env, int next_eip_addend) env->eip += next_eip_addend; cpu = x86_env_get_cpu(env); - cs = CPU(cpu); /* XXX: not complete but not completely erroneous */ do_hlt(cpu); } diff --git a/qemu/util/oslib-win32.c b/qemu/util/oslib-win32.c index 63b60798..c7590935 100644 --- a/qemu/util/oslib-win32.c +++ b/qemu/util/oslib-win32.c @@ -121,16 +121,6 @@ struct tm *localtime_r(const time_t *timep, struct tm *result) return p; } -int socket_set_fast_reuse(int fd) -{ - /* Enabling the reuse of an endpoint that was used by a socket still in - * TIME_WAIT state is usually performed by setting SO_REUSEADDR. On Windows - * fast reuse is the default and SO_REUSEADDR does strange things. So we - * don't have to do anything here. More info can be found at: - * http://msdn.microsoft.com/en-us/library/windows/desktop/ms740621.aspx */ - return 0; -} - /* int inet_aton(const char *cp, struct in_addr *ia) {