From 56dd75d204f861785ca78ae1c6eb506d5f2ea7e9 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Wed, 16 Mar 2011 05:38:37 +0000 Subject: Purge buffer and codec APIs existing exclusively in support of mpa.codec and fix that to not require them: buf_get_offset and ci.advance_buffer_loc. Sort APIs; everything must become incompatible. :( git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29595 a1c6a512-1295-4272-9138-f99709370657 --- apps/buffering.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'apps/buffering.c') 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); -- cgit v1.2.3