From 4b0fe81758501b021e07ac1b22e15f4f411d0673 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Tue, 20 Jun 2023 22:30:31 +0200 Subject: [PATCH] win: remove unused functions (#4063) --- src/win/internal.h | 14 ++------------ src/win/tty.c | 20 -------------------- 2 files changed, 2 insertions(+), 32 deletions(-) diff --git a/src/win/internal.h b/src/win/internal.h index bda321c1..9672fbc6 100644 --- a/src/win/internal.h +++ b/src/win/internal.h @@ -168,18 +168,8 @@ void uv__process_tty_read_req(uv_loop_t* loop, uv_tty_t* handle, uv_req_t* req); void uv__process_tty_write_req(uv_loop_t* loop, uv_tty_t* handle, uv_write_t* req); -/* - * uv__process_tty_accept_req() is a stub to keep DELEGATE_STREAM_REQ working - * TODO: find a way to remove it - */ -void uv__process_tty_accept_req(uv_loop_t* loop, uv_tty_t* handle, - uv_req_t* raw_req); -/* - * uv__process_tty_connect_req() is a stub to keep DELEGATE_STREAM_REQ working - * TODO: find a way to remove it - */ -void uv__process_tty_connect_req(uv_loop_t* loop, uv_tty_t* handle, - uv_connect_t* req); +#define uv__process_tty_accept_req(loop, handle, req) abort() +#define uv__process_tty_connect_req(loop, handle, req) abort() void uv__process_tty_shutdown_req(uv_loop_t* loop, uv_tty_t* stream, uv_shutdown_t* req); diff --git a/src/win/tty.c b/src/win/tty.c index 60f249b6..7e1f1554 100644 --- a/src/win/tty.c +++ b/src/win/tty.c @@ -2298,26 +2298,6 @@ void uv__tty_endgame(uv_loop_t* loop, uv_tty_t* handle) { } -/* - * uv__process_tty_accept_req() is a stub to keep DELEGATE_STREAM_REQ working - * TODO: find a way to remove it - */ -void uv__process_tty_accept_req(uv_loop_t* loop, uv_tty_t* handle, - uv_req_t* raw_req) { - abort(); -} - - -/* - * uv__process_tty_connect_req() is a stub to keep DELEGATE_STREAM_REQ working - * TODO: find a way to remove it - */ -void uv__process_tty_connect_req(uv_loop_t* loop, uv_tty_t* handle, - uv_connect_t* req) { - abort(); -} - - int uv_tty_reset_mode(void) { /* Not necessary to do anything. */ return 0;