summaryrefslogtreecommitdiff
path: root/apps/buffering.c
diff options
context:
space:
mode:
authorMihail Zenkov <mihail.zenkov@gmail.com>2014-10-02 11:27:46 +0000
committerGerrit Rockbox <gerrit@rockbox.org>2016-04-04 11:06:29 +0200
commit47d6d268c031dacb60929a21f6cceb09400c5e46 (patch)
tree6bf0fa80276e27d97d6551c57ad65a90f356efaf /apps/buffering.c
parent6228c8da185066e3e8824bffc47ed2d11147e84b (diff)
downloadrockbox-47d6d268c031dacb60929a21f6cceb09400c5e46.tar.gz
rockbox-47d6d268c031dacb60929a21f6cceb09400c5e46.zip
Cleanup unused function
Change-Id: I10aac94906607a74f05a687cb3d0029cb6faea6e
Diffstat (limited to 'apps/buffering.c')
-rw-r--r--apps/buffering.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/apps/buffering.c b/apps/buffering.c
index 96ec92201f..3b4afac073 100644
--- a/apps/buffering.c
+++ b/apps/buffering.c
@@ -552,7 +552,6 @@ BUFFER SPACE MANAGEMENT
552======================= 552=======================
553 553
554update_data_counters: Updates the values in data_counters 554update_data_counters: Updates the values in data_counters
555buffer_is_low : Returns true if the amount of useful data in the buffer is low
556buffer_handle : Buffer data for a handle 555buffer_handle : Buffer data for a handle
557rebuffer_handle : Seek to a nonbuffered part of a handle by rebuffering the data 556rebuffer_handle : Seek to a nonbuffered part of a handle by rebuffering the data
558shrink_handle : Free buffer space by moving a handle 557shrink_handle : Free buffer space by moving a handle
@@ -600,12 +599,6 @@ static int update_data_counters(struct data_counters *dc)
600 return num; 599 return num;
601} 600}
602 601
603static inline bool buffer_is_low(void)
604{
605 update_data_counters(NULL);
606 return data_counters.useful < BUF_WATERMARK / 2;
607}
608
609/* Q_BUFFER_HANDLE event and buffer data for the given handle. 602/* Q_BUFFER_HANDLE event and buffer data for the given handle.
610 Return whether or not the buffering should continue explicitly. */ 603 Return whether or not the buffering should continue explicitly. */
611static bool buffer_handle(int handle_id, size_t to_buffer) 604static bool buffer_handle(int handle_id, size_t to_buffer)