mirror of
https://git.tukaani.org/xz.git
synced 2024-04-04 12:36:23 +02:00
Remove references to the Subblock filter in xz and tests.
Thanks to Jonathan Nieder.
This commit is contained in:
parent
70e5e2f6a7
commit
a334348dc0
2 changed files with 0 additions and 32 deletions
|
@ -1180,15 +1180,6 @@ message_help(bool long_help)
|
||||||
" --delta[=OPTS] Delta filter; valid OPTS (valid values; default):\n"
|
" --delta[=OPTS] Delta filter; valid OPTS (valid values; default):\n"
|
||||||
" dist=NUM distance between bytes being subtracted\n"
|
" dist=NUM distance between bytes being subtracted\n"
|
||||||
" from each other (1-256; 1)"));
|
" from each other (1-256; 1)"));
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(HAVE_ENCODER_SUBBLOCK) || defined(HAVE_DECODER_SUBBLOCK)
|
|
||||||
puts(_(
|
|
||||||
"\n"
|
|
||||||
" --subblock[=OPTS] Subblock filter; valid OPTS (valid values; default):\n"
|
|
||||||
" size=NUM number of bytes of data per subblock\n"
|
|
||||||
" (1 - 256Mi; 4Ki)\n"
|
|
||||||
" rle=NUM run-length encoder chunk size (0-256; 0)"));
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -71,26 +71,6 @@ decode(uint32_t known_size)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#if defined(HAVE_ENCODER_SUBBLOCK) && defined(HAVE_DECODER_SUBBLOCK)
|
|
||||||
static void
|
|
||||||
test_subblock(void)
|
|
||||||
{
|
|
||||||
// Test 1
|
|
||||||
known_flags.id = LZMA_FILTER_SUBBLOCK;
|
|
||||||
known_flags.options = NULL;
|
|
||||||
expect(!encode(2));
|
|
||||||
expect(!decode(2));
|
|
||||||
expect(decoded_flags.options == NULL);
|
|
||||||
|
|
||||||
// Test 2
|
|
||||||
buffer[0] = LZMA_FILTER_SUBBLOCK;
|
|
||||||
buffer[1] = 1;
|
|
||||||
buffer[2] = 0;
|
|
||||||
expect(!decode_ret(3, LZMA_OPTIONS_ERROR));
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
#if defined(HAVE_ENCODER_X86) && defined(HAVE_DECODER_X86)
|
#if defined(HAVE_ENCODER_X86) && defined(HAVE_DECODER_X86)
|
||||||
static void
|
static void
|
||||||
test_bcj(void)
|
test_bcj(void)
|
||||||
|
@ -262,9 +242,6 @@ test_lzma(void)
|
||||||
int
|
int
|
||||||
main(void)
|
main(void)
|
||||||
{
|
{
|
||||||
#if defined(HAVE_ENCODER_SUBBLOCK) && defined(HAVE_DECODER_SUBBLOCK)
|
|
||||||
test_subblock();
|
|
||||||
#endif
|
|
||||||
#if defined(HAVE_ENCODER_X86) && defined(HAVE_DECODER_X86)
|
#if defined(HAVE_ENCODER_X86) && defined(HAVE_DECODER_X86)
|
||||||
test_bcj();
|
test_bcj();
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue