diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2022-03-26 21:54:23 +0000 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2022-04-20 16:51:49 -0400 |
commit | 9e93796407ecb8a347f9799c0a03e80939004bd7 (patch) | |
tree | af70eab0998907aa34602c9345115a60a03f0b4a /docs/PLUGIN_API | |
parent | 931d61607174ad1b09f9725ec9da214b63daed85 (diff) | |
download | rockbox-9e93796407ecb8a347f9799c0a03e80939004bd7.tar.gz rockbox-9e93796407ecb8a347f9799c0a03e80939004bd7.zip |
buffering: remove bufgettail/bufcuttail
These operations can only be used in limited circumstances and have
exactly one user. bufgettail especially seems of dubious value; how
often do you need to read N bytes from the end of a file without
changing the file position?
strip_tags() was the only function using them, to strip off ID3v1
and APE tags off the end of buffered tracks. This would save only
32-192 bytes per track -- if the container format uses APE/ID3v1.
It hardly seems worth the effort.
Change-Id: I8fc3c1408517eda6126e75e76d76daea904b50eb
Diffstat (limited to 'docs/PLUGIN_API')
-rw-r--r-- | docs/PLUGIN_API | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/docs/PLUGIN_API b/docs/PLUGIN_API index 8814833959..963809a27a 100644 --- a/docs/PLUGIN_API +++ b/docs/PLUGIN_API | |||
@@ -211,13 +211,6 @@ bool bufclose(int handle_id) | |||
211 | \return | 211 | \return |
212 | \description | 212 | \description |
213 | 213 | ||
214 | ssize_t bufcuttail(int handle_id, size_t size) | ||
215 | \group buffering API | ||
216 | \param handle_id | ||
217 | \param size | ||
218 | \return | ||
219 | \description | ||
220 | |||
221 | ssize_t bufgetdata(int handle_id, size_t size, void **data) | 214 | ssize_t bufgetdata(int handle_id, size_t size, void **data) |
222 | \group buffering API | 215 | \group buffering API |
223 | \param handle_id | 216 | \param handle_id |
@@ -226,14 +219,6 @@ ssize_t bufgetdata(int handle_id, size_t size, void **data) | |||
226 | \return | 219 | \return |
227 | \description | 220 | \description |
228 | 221 | ||
229 | ssize_t bufgettail(int handle_id, size_t size, void **data) | ||
230 | \group buffering API | ||
231 | \param handle_id | ||
232 | \param size | ||
233 | \param data | ||
234 | \return | ||
235 | \description | ||
236 | |||
237 | int bufopen(const char *file, size_t offset, enum data_type type) | 222 | int bufopen(const char *file, size_t offset, enum data_type type) |
238 | \group buffering API | 223 | \group buffering API |
239 | \param file | 224 | \param file |