_libssh2_transport_drain: removed
This function proved not to be used nor useful.
This commit is contained in:
parent
f4d302fdfe
commit
861fc75fa3
@ -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)
|
||||
|
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user