From 8b3ab3586caf8dfe87d5654da4216548c923fcb5 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Thu, 26 Jun 2025 17:08:31 +0200 Subject: [PATCH] os: xtrans: drop GetReopenInfo() Not used anywhere, so no need to keep it around anymore. Signed-off-by: Enrico Weigelt, metux IT consult --- os/Xtrans.c | 22 ---------------------- os/Xtrans.h | 7 ------- 2 files changed, 29 deletions(-) diff --git a/os/Xtrans.c b/os/Xtrans.c index dce2f953d..847b7f630 100644 --- a/os/Xtrans.c +++ b/os/Xtrans.c @@ -556,28 +556,6 @@ TRANS(ReopenCOTSServer) (int trans_id, int fd, const char *port) return TRANS(Reopen) (XTRANS_OPEN_COTS_SERVER, trans_id, fd, port); } -int -TRANS(GetReopenInfo) (XtransConnInfo ciptr, - int *trans_id, int *fd, char **port) - -{ - for (unsigned int i = 0; i < NUMTRANS; i++) - { - if (Xtransports[i].transport == ciptr->transptr) - { - *trans_id = Xtransports[i].transport_id; - *fd = ciptr->fd; - - if ((*port = strdup (ciptr->port)) == NULL) - return 0; - else - return 1; - } - } - - return 0; -} - int TRANS(SetOption) (XtransConnInfo ciptr, int option, int arg) diff --git a/os/Xtrans.h b/os/Xtrans.h index 83dd2b4d0..0ac69ef86 100644 --- a/os/Xtrans.h +++ b/os/Xtrans.h @@ -190,13 +190,6 @@ XtransConnInfo TRANS(ReopenCOTSServer)( const char * /* port */ ); -int TRANS(GetReopenInfo)( - XtransConnInfo, /* ciptr */ - int *, /* trans_id */ - int *, /* fd */ - char ** /* port */ -); - int TRANS(SetOption)( XtransConnInfo, /* ciptr */ int, /* option */