os: xtrans: drop GetReopenInfo()

Not used anywhere, so no need to keep it around anymore.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult 2025-06-26 17:08:31 +02:00
parent cbcb9718ef
commit 8b3ab3586c
2 changed files with 0 additions and 29 deletions

View File

@ -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)

View File

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