summaryrefslogtreecommitdiff
path: root/libarchive/archive_read_support_filter_lrzip.c
diff options
context:
space:
mode:
authorEmil Velikov <emil.l.velikov@gmail.com>2020-03-14 17:05:41 +0000
committerEmil Velikov <emil.l.velikov@gmail.com>2021-10-23 19:26:23 +0100
commit8649d2a8e82f1b50c9eaf528df96046fee7420db (patch)
tree7d056c2743f7d291ac6262865cac4974dffa580e /libarchive/archive_read_support_filter_lrzip.c
parentb30dd6c2762b6c0cc9aeb676076f7619c49a381b (diff)
downloadlibarchive-8649d2a8e82f1b50c9eaf528df96046fee7420db.tar.gz
reader: remove archive_read_filter_bidder_vtable::free stubs
There is no point in having stubs around. The caller already checks if the function pointer is NULL before calling it. With this in place only one implementation remains in filter_program. Technically we can rework/remove that as well, although the solution might not be so clean, so let's keep that for another day. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Diffstat (limited to 'libarchive/archive_read_support_filter_lrzip.c')
-rw-r--r--libarchive/archive_read_support_filter_lrzip.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/libarchive/archive_read_support_filter_lrzip.c b/libarchive/archive_read_support_filter_lrzip.c
index 01cbf381..81bbec25 100644
--- a/libarchive/archive_read_support_filter_lrzip.c
+++ b/libarchive/archive_read_support_filter_lrzip.c
@@ -53,13 +53,6 @@ static int lrzip_bidder_bid(struct archive_read_filter_bidder *,
static int lrzip_bidder_init(struct archive_read_filter *);
-static int
-lrzip_reader_free(struct archive_read_filter_bidder *self)
-{
- (void)self; /* UNUSED */
- return (ARCHIVE_OK);
-}
-
int
archive_read_support_filter_lrzip(struct archive *_a)
{
@@ -76,7 +69,7 @@ archive_read_support_filter_lrzip(struct archive *_a)
reader->name = "lrzip";
reader->bid = lrzip_bidder_bid;
reader->init = lrzip_bidder_init;
- reader->free = lrzip_reader_free;
+ reader->free = NULL;
/* This filter always uses an external program. */
archive_set_error(_a, ARCHIVE_ERRNO_MISC,
"Using external lrzip program for lrzip decompression");