From 81aff9363357b4174a8528bc259d3d4ca277c7e7 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Mon, 28 May 2012 22:22:11 +0200 Subject: [PATCH] win/process.c: remove unused function duplicate_std_handle --- src/win/process.c | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/src/win/process.c b/src/win/process.c index 0ad12a04..dd0101b0 100644 --- a/src/win/process.c +++ b/src/win/process.c @@ -831,37 +831,6 @@ done: } -static int duplicate_std_handle(uv_loop_t* loop, DWORD id, HANDLE* dup) { - HANDLE handle; - HANDLE current_process = GetCurrentProcess(); - - handle = GetStdHandle(id); - - if (handle == NULL) { - *dup = NULL; - return 0; - } else if (handle == INVALID_HANDLE_VALUE) { - *dup = INVALID_HANDLE_VALUE; - uv__set_sys_error(loop, GetLastError()); - return -1; - } - - if (!DuplicateHandle(current_process, - handle, - current_process, - dup, - 0, - TRUE, - DUPLICATE_SAME_ACCESS)) { - *dup = INVALID_HANDLE_VALUE; - uv__set_sys_error(loop, GetLastError()); - return -1; - } - - return 0; -} - - static int duplicate_handle(uv_loop_t* loop, HANDLE handle, HANDLE* dup) { HANDLE current_process;