From 7f0dd4d2a05427cff37fbb9d92e09185f0ada0db Mon Sep 17 00:00:00 2001 From: Fabiano FidĂȘncio Date: Fri, 25 Sep 2015 00:46:04 +0200 Subject: buffer: remove ssh_buffer_get_begin() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Note that removing ssh_buffer_get_begin() doesn't break API compatibility, as this functions has never been exposed (it only has the LIBSSH_API prefix). Signed-off-by: Fabiano FidĂȘncio --- src/buffer.c | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'src') diff --git a/src/buffer.c b/src/buffer.c index 801cbd53..0b09e777 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -434,23 +434,6 @@ int ssh_buffer_add_buffer(struct ssh_buffer_struct *buffer, return 0; } -/** - * @brief Get a pointer on the head of a buffer. - * - * @param[in] buffer The buffer to get the head pointer. - * - * @return A data pointer on the head. It doesn't take the position - * into account. - * - * @warning Don't expect data to be nul-terminated. - * - * @see ssh_buffer_get() - * @see ssh_buffer_get_len() - */ -void *ssh_buffer_get_begin(struct ssh_buffer_struct *buffer){ - return buffer->data; -} - /** * @internal * -- cgit