From dfcdfae152cf8c4a25f31250ddc729d229b38ddc Mon Sep 17 00:00:00 2001 From: Talison Fabio <54823205+talis-fb@users.noreply.github.com> Date: Sat, 26 Apr 2025 10:30:41 -0300 Subject: [PATCH] chore: remove dead code --- src/commands/mod.rs | 2 -- tests/integration.rs | 18 ------------------ 2 files changed, 20 deletions(-) diff --git a/src/commands/mod.rs b/src/commands/mod.rs index eedb9e8..dadfd95 100644 --- a/src/commands/mod.rs +++ b/src/commands/mod.rs @@ -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; diff --git a/tests/integration.rs b/tests/integration.rs index 0216a48..9b1bfcb 100644 --- a/tests/integration.rs +++ b/tests/integration.rs @@ -88,24 +88,6 @@ fn create_random_files(dir: impl Into, depth: u8, rng: &mut SmallRng) { } } -/// Create n random files on directory dir -fn create_n_random_files(n: usize, dir: impl Into, 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) {