summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-04-25 19:11:07 +0200
committerwm4 <wm4@nowhere>2014-04-25 19:11:07 +0200
commitcbeb558c6c635259e6fc98fe595b7011a3e09b92 (patch)
tree9efdb9cbe03d5ba9c1c443741919006140a54165 /stream
parentefaed938612a34c848baa629159963c33bd460d0 (diff)
downloadmpv-cbeb558c6c635259e6fc98fe595b7011a3e09b92.tar.bz2
mpv-cbeb558c6c635259e6fc98fe595b7011a3e09b92.tar.xz
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.
Diffstat (limited to 'stream')
-rw-r--r--stream/stream.h25
1 files changed, 0 insertions, 25 deletions
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).