From 86e3680bdedee10b6f0a46360b5a330d96e2f707 Mon Sep 17 00:00:00 2001 From: Fabiano FidĂȘncio Date: Fri, 25 Sep 2015 01:21:42 +0200 Subject: buffer: remove ssh_buffer_get_rest_len() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fabiano FidĂȘncio --- src/buffer.c | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'src') diff --git a/src/buffer.c b/src/buffer.c index 722efb6a..801cbd53 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -467,21 +467,6 @@ void *ssh_buffer_get(struct ssh_buffer_struct *buffer){ } /** - * @brief Get the length of the buffer, not counting position. - * - * @param[in] buffer The buffer to get the length from. - * - * @return The length of the buffer. - * - * @see ssh_buffer_get() - */ -uint32_t ssh_buffer_get_len(struct ssh_buffer_struct *buffer){ - return ssh_buffer_get_rest_len(buffer); -} - -/** - * @internal - * * @brief Get the length of the buffer from the current position. * * @param[in] buffer The buffer to get the length from. @@ -490,7 +475,7 @@ uint32_t ssh_buffer_get_len(struct ssh_buffer_struct *buffer){ * * @see ssh_buffer_get() */ -uint32_t ssh_buffer_get_rest_len(struct ssh_buffer_struct *buffer){ +uint32_t ssh_buffer_get_len(struct ssh_buffer_struct *buffer){ buffer_verify(buffer); return buffer->used - buffer->pos; } -- cgit