From 8334834c3fb491f73b0039bb2954a1792a0b4933 Mon Sep 17 00:00:00 2001 From: Ingvar Stepanyan Date: Wed, 15 Apr 2020 22:04:46 +0100 Subject: [PATCH] Remove unused (outdated?) options --- src/lib.rs | 10 ---------- src/main.rs | 4 ---- 2 files changed, 14 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 3395510b..e4af09be 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -132,14 +132,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` @@ -305,8 +297,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 bafdc2bd..f1f394ec 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; }