From e8ff6f75266de0c2527cf2bcd7a2b0e26d426e48 Mon Sep 17 00:00:00 2001 From: Ingvar Stepanyan Date: Fri, 17 Apr 2020 10:16:18 +0100 Subject: [PATCH] Remove unused (outdated?) options (#212) Co-authored-by: Josh Holmer --- src/lib.rs | 10 ---------- src/main.rs | 4 ---- 2 files changed, 14 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 9b498728..9b0d1446 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -131,14 +131,6 @@ pub struct Options { /// Used only in CLI interface #[doc(hidden)] pub recursive: bool, - /// Overwrite existing output files. - /// - /// Default: `true` - pub clobber: bool, - /// Create new output files if they don't exist. - /// - /// Default: `true` - pub create: bool, /// Write to output even if there was no improvement in compression. /// /// Default: `false` @@ -300,8 +292,6 @@ impl Default for Options { pretend: false, recursive: false, fix_errors: false, - clobber: true, - create: true, force: false, preserve_attrs: false, verbosity: Some(0), diff --git a/src/main.rs b/src/main.rs index 8f03e79c..517123d8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -403,10 +403,6 @@ fn parse_opts_into_struct( opts.fix_errors = true; } - if matches.is_present("clobber") { - opts.clobber = false; - } - if matches.is_present("pretend") { opts.pretend = true; }