From cbeb558c6c635259e6fc98fe595b7011a3e09b92 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 25 Apr 2014 19:11:07 +0200 Subject: stream: remove unused functions Interestingly, their last use was removed with commit bbbea793, over 4 months ago. Also remove a stray struct demux_stream forward declaration. --- stream/stream.h | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'stream') diff --git a/stream/stream.h b/stream/stream.h index 589728d4ac..d51a26f61c 100644 --- a/stream/stream.h +++ b/stream/stream.h @@ -194,30 +194,6 @@ inline static int stream_read_char(stream_t *s) (stream_fill_buffer(s) ? s->buffer[s->buf_pos++] : -256); } -inline static unsigned int stream_read_dword(stream_t *s) -{ - unsigned int y; - y = stream_read_char(s); - y = (y << 8) | stream_read_char(s); - y = (y << 8) | stream_read_char(s); - y = (y << 8) | stream_read_char(s); - return y; -} - -inline static uint64_t stream_read_qword(stream_t *s) -{ - uint64_t y; - y = stream_read_char(s); - y = (y << 8) | stream_read_char(s); - y = (y << 8) | stream_read_char(s); - y = (y << 8) | stream_read_char(s); - y = (y << 8) | stream_read_char(s); - y = (y << 8) | stream_read_char(s); - y = (y << 8) | stream_read_char(s); - y = (y << 8) | stream_read_char(s); - return y; -} - unsigned char *stream_read_line(stream_t *s, unsigned char *mem, int max, int utf16); int stream_skip_bom(struct stream *s); @@ -250,7 +226,6 @@ struct stream *stream_create(const char *url, int flags, struct mpv_global *glob struct stream *stream_open(const char *filename, struct mpv_global *global); stream_t *open_output_stream(const char *filename, struct mpv_global *global); stream_t *open_memory_stream(void *data, int len); -struct demux_stream; /// Set the callback to be used by libstream to check for user /// interruption during long blocking operations (cache filling, etc). -- cgit v1.2.3