From 32d6d4499e315a5a2f224beaa54faad03ff80a16 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 30 Jan 2009 00:58:03 +0100 Subject: input_stream: make seek(), buffer() optional Make those two methods optional to implement, and let input_stream.c provide fallbacks. The buffer() method will be removed one day, and there is now only one implementation left (input_curl.c). --- src/archive/iso_plugin.c | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'src/archive/iso_plugin.c') diff --git a/src/archive/iso_plugin.c b/src/archive/iso_plugin.c index de5582e2c..b5ac7f6ca 100644 --- a/src/archive/iso_plugin.c +++ b/src/archive/iso_plugin.c @@ -211,19 +211,6 @@ iso_is_eof(struct input_stream *is) return (context->cur_ofs == context->statbuf->size); } -static bool -iso_is_seek(G_GNUC_UNUSED struct input_stream *is, - G_GNUC_UNUSED off_t offset, G_GNUC_UNUSED int whence) -{ - return false; -} - -static int -iso_is_buffer(G_GNUC_UNUSED struct input_stream *is) -{ - return 0; -} - /* exported structures */ static const char *const iso_extensions[] = { @@ -235,8 +222,6 @@ static const struct input_plugin iso_inputplugin = { .close = iso_is_close, .read = iso_is_read, .eof = iso_is_eof, - .seek = iso_is_seek, - .buffer = iso_is_buffer }; const struct archive_plugin iso_plugin = { -- cgit v1.2.3