mirror of https://git.tukaani.org/xz.git
xz: Remove the commented-out FORMAT_GZIP, gzip, .gz, and .tgz.
This commit is contained in:
parent
3176f992c5
commit
731db13e6f
|
@ -415,8 +415,6 @@ parse_real(args_info *args, int argc, char **argv)
|
|||
#ifdef HAVE_LZIP_DECODER
|
||||
{ "lzip", FORMAT_LZIP },
|
||||
#endif
|
||||
// { "gzip", FORMAT_GZIP },
|
||||
// { "gz", FORMAT_GZIP },
|
||||
{ "raw", FORMAT_RAW },
|
||||
};
|
||||
|
||||
|
|
|
@ -26,7 +26,6 @@ enum format_type {
|
|||
#ifdef HAVE_LZIP_DECODER
|
||||
FORMAT_LZIP,
|
||||
#endif
|
||||
// HEADER_GZIP,
|
||||
FORMAT_RAW,
|
||||
};
|
||||
|
||||
|
|
|
@ -123,8 +123,6 @@ uncompressed_name(const char *src_name, const size_t src_len)
|
|||
#ifdef HAVE_LZIP_DECODER
|
||||
{ ".lz", "" },
|
||||
#endif
|
||||
// { ".gz", "" },
|
||||
// { ".tgz", ".tar" },
|
||||
};
|
||||
|
||||
const char *new_suffix = "";
|
||||
|
@ -220,12 +218,6 @@ compressed_name(const char *src_name, size_t src_len)
|
|||
*/
|
||||
NULL
|
||||
#endif
|
||||
/*
|
||||
}, {
|
||||
".gz",
|
||||
".tgz",
|
||||
NULL
|
||||
*/
|
||||
}, {
|
||||
// --format=raw requires specifying the suffix
|
||||
// manually or using stdout.
|
||||
|
@ -319,7 +311,6 @@ compressed_name(const char *src_name, size_t src_len)
|
|||
/*
|
||||
".tlz", // .tar.lz
|
||||
*/
|
||||
// ".tgz",
|
||||
};
|
||||
suffix = tar_suffixes[format];
|
||||
suffix_len = 4;
|
||||
|
|
Loading…
Reference in New Issue