chore: remove dead code

This commit is contained in:
Talison Fabio 2025-04-26 10:30:41 -03:00
parent 733bf35222
commit dfcdfae152
2 changed files with 0 additions and 20 deletions

View File

@ -177,8 +177,6 @@ pub fn run(
check::check_missing_formats_when_decompressing(&files, &formats)?;
let is_smart_unpack = !no_smart_unpack && output_dir.is_none();
let is_output_dir_provided = output_dir.is_some();
let is_smart_unpack = !is_output_dir_provided && !no_smart_unpack;

View File

@ -88,24 +88,6 @@ fn create_random_files(dir: impl Into<PathBuf>, depth: u8, rng: &mut SmallRng) {
}
}
/// Create n random files on directory dir
fn create_n_random_files(n: usize, dir: impl Into<PathBuf>, rng: &mut SmallRng) {
let dir: &PathBuf = &dir.into();
for _ in 0..n {
write_random_content(
&mut tempfile::Builder::new()
.prefix("file")
.tempfile_in(dir)
.unwrap()
.keep()
.unwrap()
.0,
rng,
);
}
}
/// Compress and decompress a single empty file
#[proptest(cases = 200)]
fn single_empty_file(ext: Extension, #[any(size_range(0..8).lift())] exts: Vec<FileExtension>) {