mirror of
https://github.com/ouch-org/ouch.git
synced 2025-06-05 02:55:31 +00:00
chore: remove dead code
This commit is contained in:
parent
733bf35222
commit
dfcdfae152
@ -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;
|
||||
|
||||
|
@ -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>) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user