diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2007-10-22 22:24:07 +0300 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2007-10-22 22:24:07 +0300 |
commit | 2f7b29a179e988d683d74116a07b2ba67c43c0c6 (patch) | |
tree | dee3beeca95fff5ed6821d4a5b45d5a11e002c69 /lib/gnutls_buffers.c | |
parent | ca1578216bb36a7739cd15ac25e7b6f1fa7be9ec (diff) | |
download | gnutls-2f7b29a179e988d683d74116a07b2ba67c43c0c6.tar.gz |
Removed some ancient non-used functions.
Diffstat (limited to 'lib/gnutls_buffers.c')
-rw-r--r-- | lib/gnutls_buffers.c | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/lib/gnutls_buffers.c b/lib/gnutls_buffers.c index 7d434caba1..2b84575405 100644 --- a/lib/gnutls_buffers.c +++ b/lib/gnutls_buffers.c @@ -882,42 +882,6 @@ _gnutls_io_write_buffered (gnutls_session_t session, } -/* This is exactly like write_buffered, but will use two buffers to read - * from. - */ -ssize_t -_gnutls_io_write_buffered2 (gnutls_session_t session, - const void *iptr, size_t n, - const void *iptr2, size_t n2) -{ - - if (n == 0) - { - return _gnutls_io_write_buffered (session, iptr2, n2); - } - else - { - opaque *sptr; - ssize_t ret; - - sptr = gnutls_alloca (n + n2); - if (sptr == NULL) - { - gnutls_assert (); - return GNUTLS_E_MEMORY_ERROR; - } - - memcpy (sptr, iptr, n); - memcpy (&sptr[n], iptr2, n2); - - ret = _gnutls_io_write_buffered (session, sptr, n + n2); - gnutls_afree (sptr); - - return ret; - } -} - - /* This function writes the data that are left in the * TLS write buffer (ie. because the previous write was * interrupted. |