diff options
Diffstat (limited to 'apps/buffering.c')
-rw-r--r-- | apps/buffering.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/apps/buffering.c b/apps/buffering.c index 0cd81df93a..f70400a1ee 100644 --- a/apps/buffering.c +++ b/apps/buffering.c @@ -1444,7 +1444,6 @@ ssize_t bufcuttail(int handle_id, size_t size) SECONDARY EXPORTED FUNCTIONS ============================ -buf_get_offset buf_handle_offset buf_request_buffer_handle buf_set_base_handle @@ -1457,16 +1456,6 @@ They take care of the content of the structs, and rely on the linked list management functions for all the actual handle management work. */ -/* Get a handle offset from a pointer */ -ssize_t buf_get_offset(int handle_id, void *ptr) -{ - const struct memory_handle *h = find_handle(handle_id); - if (!h) - return ERR_HANDLE_NOT_FOUND; - - return (size_t)ptr - (size_t)&buffer[h->ridx]; -} - ssize_t buf_handle_offset(int handle_id) { const struct memory_handle *h = find_handle(handle_id); |