From 6d8f8fc4f08ade853b4171b068cf9d855eb5a936 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 12 Jul 2013 22:10:45 +0200 Subject: stream: remove unused functions These were used by old demuxers. --- stream/stream.h | 36 ------------------------------------ 1 file changed, 36 deletions(-) (limited to 'stream/stream.h') diff --git a/stream/stream.h b/stream/stream.h index 36adea2c40..cd2b36a3a3 100644 --- a/stream/stream.h +++ b/stream/stream.h @@ -183,14 +183,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_word(stream_t *s) -{ - int x, y; - x = stream_read_char(s); - y = stream_read_char(s); - return (x << 8) | y; -} - inline static unsigned int stream_read_dword(stream_t *s) { unsigned int y; @@ -201,26 +193,6 @@ inline static unsigned int stream_read_dword(stream_t *s) return y; } -#define stream_read_fourcc stream_read_dword_le - -inline static unsigned int stream_read_word_le(stream_t *s) -{ - int x, y; - x = stream_read_char(s); - y = stream_read_char(s); - return (y << 8) | x; -} - -inline static uint32_t stream_read_dword_le(stream_t *s) -{ - unsigned int y; - y = stream_read_char(s); - y |= stream_read_char(s) << 8; - y |= stream_read_char(s) << 16; - y |= stream_read_char(s) << 24; - return y; -} - inline static uint64_t stream_read_qword(stream_t *s) { uint64_t y; @@ -235,14 +207,6 @@ inline static uint64_t stream_read_qword(stream_t *s) return y; } -inline static uint64_t stream_read_qword_le(stream_t *s) -{ - uint64_t y; - y = stream_read_dword_le(s); - y |= (uint64_t)stream_read_dword_le(s) << 32; - return y; -} - unsigned char *stream_read_line(stream_t *s, unsigned char *mem, int max, int utf16); -- cgit v1.2.3