From f65e004aa333b947049aef84013acd66a1f6fcb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Sun, 9 Jul 2017 14:07:12 +0200 Subject: [PATCH] unix,win: remove v1.x version of uv_get_osfhandle It got refactored in https://github.com/libuv/libuv/commit/68dafe9016e35e31bf1a7ba8482a3d566c43a86b PR-URL: https://github.com/libuv/libuv/pull/1413 Reviewed-By: Bartosz Sosnowski Reviewed-By: Ben Noordhuis Reviewed-By: Colin Ihrig Reviewed-By: Santiago Gimeno --- include/uv.h | 1 - src/unix/core.c | 5 ----- src/win/handle.c | 5 ----- 3 files changed, 11 deletions(-) diff --git a/include/uv.h b/include/uv.h index b260a92f..c0442c6a 100644 --- a/include/uv.h +++ b/include/uv.h @@ -1087,7 +1087,6 @@ UV_EXTERN int uv_get_process_title(char* buffer, size_t size); UV_EXTERN int uv_set_process_title(const char* title); UV_EXTERN int uv_resident_set_memory(size_t* rss); UV_EXTERN int uv_uptime(double* uptime); -UV_EXTERN uv_os_fd_t uv_get_osfhandle(int fd); typedef struct { long tv_sec; diff --git a/src/unix/core.c b/src/unix/core.c index 424da252..14247f45 100644 --- a/src/unix/core.c +++ b/src/unix/core.c @@ -1317,8 +1317,3 @@ int uv_os_gethostname(char* buffer, size_t* size) { *size = len; return 0; } - - -uv_os_fd_t uv_get_osfhandle(int fd) { - return fd; -} diff --git a/src/win/handle.c b/src/win/handle.c index c2797068..9f83df16 100644 --- a/src/win/handle.c +++ b/src/win/handle.c @@ -148,8 +148,3 @@ void uv_close(uv_handle_t* handle, uv_close_cb cb) { int uv_is_closing(const uv_handle_t* handle) { return !!(handle->flags & (UV__HANDLE_CLOSING | UV_HANDLE_CLOSED)); } - - -uv_os_fd_t uv_get_osfhandle(int fd) { - return uv__get_osfhandle(fd); -}