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) | |||
1444 | SECONDARY EXPORTED FUNCTIONS | 1444 | SECONDARY EXPORTED FUNCTIONS |
1445 | ============================ | 1445 | ============================ |
1446 | 1446 | ||
1447 | buf_get_offset | ||
1448 | buf_handle_offset | 1447 | buf_handle_offset |
1449 | buf_request_buffer_handle | 1448 | buf_request_buffer_handle |
1450 | buf_set_base_handle | 1449 | buf_set_base_handle |
@@ -1457,16 +1456,6 @@ They take care of the content of the structs, and rely on the linked list | |||
1457 | management functions for all the actual handle management work. | 1456 | management functions for all the actual handle management work. |
1458 | */ | 1457 | */ |
1459 | 1458 | ||
1460 | /* Get a handle offset from a pointer */ | ||
1461 | ssize_t buf_get_offset(int handle_id, void *ptr) | ||
1462 | { | ||
1463 | const struct memory_handle *h = find_handle(handle_id); | ||
1464 | if (!h) | ||
1465 | return ERR_HANDLE_NOT_FOUND; | ||
1466 | |||
1467 | return (size_t)ptr - (size_t)&buffer[h->ridx]; | ||
1468 | } | ||
1469 | |||
1470 | ssize_t buf_handle_offset(int handle_id) | 1459 | ssize_t buf_handle_offset(int handle_id) |
1471 | { | 1460 | { |
1472 | const struct memory_handle *h = find_handle(handle_id); | 1461 | const struct memory_handle *h = find_handle(handle_id); |