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 */