1
0
Fork 0
mirror of https://git.tukaani.org/xz.git synced 2024-04-04 12:36:23 +02:00

xz: Remove the commented-out FORMAT_GZIP, gzip, .gz, and .tgz.

This commit is contained in:
Lasse Collin 2022-10-19 22:32:51 +03:00
parent 3176f992c5
commit 731db13e6f
3 changed files with 0 additions and 12 deletions

View file

@ -415,8 +415,6 @@ parse_real(args_info *args, int argc, char **argv)
#ifdef HAVE_LZIP_DECODER #ifdef HAVE_LZIP_DECODER
{ "lzip", FORMAT_LZIP }, { "lzip", FORMAT_LZIP },
#endif #endif
// { "gzip", FORMAT_GZIP },
// { "gz", FORMAT_GZIP },
{ "raw", FORMAT_RAW }, { "raw", FORMAT_RAW },
}; };

View file

@ -26,7 +26,6 @@ enum format_type {
#ifdef HAVE_LZIP_DECODER #ifdef HAVE_LZIP_DECODER
FORMAT_LZIP, FORMAT_LZIP,
#endif #endif
// HEADER_GZIP,
FORMAT_RAW, FORMAT_RAW,
}; };

View file

@ -123,8 +123,6 @@ uncompressed_name(const char *src_name, const size_t src_len)
#ifdef HAVE_LZIP_DECODER #ifdef HAVE_LZIP_DECODER
{ ".lz", "" }, { ".lz", "" },
#endif #endif
// { ".gz", "" },
// { ".tgz", ".tar" },
}; };
const char *new_suffix = ""; const char *new_suffix = "";
@ -220,12 +218,6 @@ compressed_name(const char *src_name, size_t src_len)
*/ */
NULL NULL
#endif #endif
/*
}, {
".gz",
".tgz",
NULL
*/
}, { }, {
// --format=raw requires specifying the suffix // --format=raw requires specifying the suffix
// manually or using stdout. // manually or using stdout.
@ -319,7 +311,6 @@ compressed_name(const char *src_name, size_t src_len)
/* /*
".tlz", // .tar.lz ".tlz", // .tar.lz
*/ */
// ".tgz",
}; };
suffix = tar_suffixes[format]; suffix = tar_suffixes[format];
suffix_len = 4; suffix_len = 4;