From 861fc75fa33c0d7c3462009a676a965b6661277f Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 7 Oct 2010 13:30:05 +0200 Subject: [PATCH] _libssh2_transport_drain: removed This function proved not to be used nor useful. --- src/transport.c | 14 -------------- src/transport.h | 6 ------ 2 files changed, 20 deletions(-) diff --git a/src/transport.c b/src/transport.c index 3faf4e1..5cab2a8 100644 --- a/src/transport.c +++ b/src/transport.c @@ -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) diff --git a/src/transport.h b/src/transport.h index 277c4b2..81d7c0d 100644 --- a/src/transport.h +++ b/src/transport.h @@ -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 */