summaryrefslogtreecommitdiff
path: root/lib/str.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-09-26 16:44:39 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2018-02-19 15:29:34 +0100
commit7b9462d7b0b4bac2e1abf2716856cb4fdb1f688c (patch)
tree2631d8f0ab6b21a9ebaab3fcae63cf7c58b5dd41 /lib/str.c
parent3509d17b952898e39601e571809437ab73284f2e (diff)
downloadgnutls-7b9462d7b0b4bac2e1abf2716856cb4fdb1f688c.tar.gz
kx: moved to new buffer API
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'lib/str.c')
-rw-r--r--lib/str.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/str.c b/lib/str.c
index 0571defa87..378cedfa0c 100644
--- a/lib/str.c
+++ b/lib/str.c
@@ -75,14 +75,6 @@ void _gnutls_buffer_init(gnutls_buffer_st * str)
str->length = 0;
}
-void _gnutls_buffer_replace_data(gnutls_buffer_st * buf,
- gnutls_datum_t * data)
-{
- gnutls_free(buf->allocd);
- buf->allocd = buf->data = data->data;
- buf->max_length = buf->length = data->size;
-}
-
void _gnutls_buffer_clear(gnutls_buffer_st * str)
{
if (str == NULL || str->allocd == NULL)