_libssh2_transport_drain: removed

This function proved not to be used nor useful.
This commit is contained in:
Daniel Stenberg 2010-10-07 13:30:05 +02:00
parent f4d302fdfe
commit 861fc75fa3
2 changed files with 0 additions and 20 deletions

View File

@ -597,20 +597,6 @@ int _libssh2_transport_read(LIBSSH2_SESSION * session)
return LIBSSH2_ERROR_SOCKET_RECV; /* we never reach this point */
}
/*
* _libssh2_transport_drain() empties the outgoing send buffer if there
* is any.
*/
void _libssh2_transport_drain(LIBSSH2_SESSION * session)
{
struct transportpacket *p = &session->packet;
if(p->outbuf) {
LIBSSH2_FREE(session, p->outbuf);
p->outbuf = NULL;
p->ototal_num = 0;
}
}
static int
send_existing(LIBSSH2_SESSION * session, unsigned char *data,
size_t data_len, ssize_t * ret)

View File

@ -78,10 +78,4 @@ int _libssh2_transport_write(LIBSSH2_SESSION * session, unsigned char *data,
*/
int _libssh2_transport_read(LIBSSH2_SESSION * session);
/*
* _libssh2_transport_drain() empties the outgoing send buffer if there
* is any.
*/
void _libssh2_transport_drain(LIBSSH2_SESSION *session);
#endif /* __LIBSSH2_TRANSPORT_H */