From 2c5728b6671a6877317f9dfa70ec55d85caa40d7 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 30 Sep 2020 12:11:54 +0200 Subject: WIP: Simply reader byte reader interface --- src/reader.h | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src') diff --git a/src/reader.h b/src/reader.h index df6e6387..0cc2bff6 100644 --- a/src/reader.h +++ b/src/reader.h @@ -109,15 +109,6 @@ peek_byte(SerdReader* reader) return source->eof ? EOF : (int)source->read_buf[source->read_head]; } -static inline int -eat_byte(SerdReader* reader) -{ - const int c = peek_byte(reader); - const SerdStatus st = serd_byte_source_advance(reader->source); - - return st > SERD_FAILURE ? EOF : c; -} - static inline int eat_byte_safe(SerdReader* reader, const int byte) { -- cgit v1.2.1