From 5f883a2582ed98a0837d37e8ffd977e474550d24 Mon Sep 17 00:00:00 2001 From: Juan Jose Garcia Ripoll Date: Fri, 9 Oct 2009 17:22:49 +0200 Subject: [PATCH] Removed unused code. --- src/c/unixint.d | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/src/c/unixint.d b/src/c/unixint.d index f6c35f567..9f2c558d2 100644 --- a/src/c/unixint.d +++ b/src/c/unixint.d @@ -744,26 +744,6 @@ do_interrupt_thread(cl_object process) ok = 0; goto EXIT; } -#if 0 - context.ContextFlags = CONTEXT_FULL; - if (!GetThreadContext(thread, &context)) { - FEwin32_error("Unable to query context in thread ~A", 1, - process); - ok = 0; - goto RESUME; - } -# ifdef _AMD64_ - trap_address = (void*)context.Rsp; -# endif -# ifdef _X86_ - trap_address = (void*)context.Esp; -# endif - process->process.interrupt = Ct; - if (!VirtualProtect(trap_address, 1, guard, &guard)) { - FEwin32_error("Unable to protect memory from thread ~A", - 1, process); - ok = 0; -#else process->process.interrupt = Ct; if (!VirtualProtect(process->process.env, sizeof(struct cl_env_struct), @@ -774,7 +754,6 @@ do_interrupt_thread(cl_object process) 1, process); ok = 0; } -#endif RESUME: if (!QueueUserAPC(wakeup_function, thread, 0)) { FEwin32_error("Unable to queue APC call to thread ~A",