summaryrefslogtreecommitdiff
path: root/libarchive/archive_read_support_filter_bzip2.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_bzip2.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_bzip2.c')
-rw-r--r--libarchive/archive_read_support_filter_bzip2.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/libarchive/archive_read_support_filter_bzip2.c b/libarchive/archive_read_support_filter_bzip2.c
index b04a6fdf..3dd1f1de 100644
--- a/libarchive/archive_read_support_filter_bzip2.c
+++ b/libarchive/archive_read_support_filter_bzip2.c
@@ -70,7 +70,6 @@ static int bzip2_filter_close(struct archive_read_filter *);
*/
static int bzip2_reader_bid(struct archive_read_filter_bidder *, struct archive_read_filter *);
static int bzip2_reader_init(struct archive_read_filter *);
-static int bzip2_reader_free(struct archive_read_filter_bidder *);
#if ARCHIVE_VERSION_NUMBER < 4000000
/* Deprecated; remove in libarchive 4.0 */
@@ -97,7 +96,7 @@ archive_read_support_filter_bzip2(struct archive *_a)
reader->name = "bzip2";
reader->bid = bzip2_reader_bid;
reader->init = bzip2_reader_init;
- reader->free = bzip2_reader_free;
+ reader->free = NULL;
#if defined(HAVE_BZLIB_H) && defined(BZ_CONFIG_ERROR)
return (ARCHIVE_OK);
#else
@@ -107,12 +106,6 @@ archive_read_support_filter_bzip2(struct archive *_a)
#endif
}
-static int
-bzip2_reader_free(struct archive_read_filter_bidder *self){
- (void)self; /* UNUSED */
- return (ARCHIVE_OK);
-}
-
/*
* Test whether we can handle this data.
*