From 5f22bd2d37e3bd01a5d701b51750eb51f09c11bf Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Mon, 28 Nov 2022 10:51:03 +0200 Subject: [PATCH] liblzma: Remove lzma_lz_decoder_uncompressed() as it's now unused. --- src/liblzma/lz/lz_decoder.c | 14 -------------- src/liblzma/lz/lz_decoder.h | 3 --- 2 files changed, 17 deletions(-) diff --git a/src/liblzma/lz/lz_decoder.c b/src/liblzma/lz/lz_decoder.c index 4a62db76..06c95c11 100644 --- a/src/liblzma/lz/lz_decoder.c +++ b/src/liblzma/lz/lz_decoder.c @@ -302,17 +302,3 @@ lzma_lz_decoder_memusage(size_t dictionary_size) { return sizeof(lzma_coder) + (uint64_t)(dictionary_size); } - - -extern void -lzma_lz_decoder_uncompressed(void *coder_ptr, lzma_vli uncompressed_size, - bool allow_eopm) -{ - lzma_coder *coder = coder_ptr; - - if (uncompressed_size == LZMA_VLI_UNKNOWN) - allow_eopm = true; - - coder->lz.set_uncompressed(coder->lz.coder, uncompressed_size, - allow_eopm); -} diff --git a/src/liblzma/lz/lz_decoder.h b/src/liblzma/lz/lz_decoder.h index 8e68ac8a..ad80d4dd 100644 --- a/src/liblzma/lz/lz_decoder.h +++ b/src/liblzma/lz/lz_decoder.h @@ -93,9 +93,6 @@ extern lzma_ret lzma_lz_decoder_init(lzma_next_coder *next, extern uint64_t lzma_lz_decoder_memusage(size_t dictionary_size); -extern void lzma_lz_decoder_uncompressed( - void *coder, lzma_vli uncompressed_size, bool allow_eopm); - ////////////////////// // Inline functions //