[03/10] config: remove more unused option handling

Submitted by Adrian Reber on Aug. 1, 2018, 4:31 p.m.

Details

Message ID 20180801163122.19872-4-adrian@lisas.de
State Accepted
Series "Series without cover letter"
Headers show

Commit Message

Adrian Reber Aug. 1, 2018, 4:31 p.m.
From: Adrian Reber <areber@redhat.com>

The variable show_dump_file and show_fmt are assigned but never used,
this remove the assignment. The CLI option still exists to not break the
user interface.  It exists, but it is unused.

Signed-off-by: Adrian Reber <areber@redhat.com>
---
 criu/config.c             | 6 ------
 criu/include/cr_options.h | 2 --
 2 files changed, 8 deletions(-)

Patch hide | download patch | download mbox

diff --git a/criu/config.c b/criu/config.c
index 357893050..fd192173b 100644
--- a/criu/config.c
+++ b/criu/config.c
@@ -515,12 +515,6 @@  int parse_options(int argc, char **argv, bool *usage_error, bool *has_exec_cmd)
 		case 'c':
 			opts.show_pages_content	= true;
 			break;
-		case 'f':
-			opts.show_dump_file = optarg;
-			break;
-		case 'F':
-			opts.show_fmt = optarg;
-			break;
 		case 'r':
 			opts.root = optarg;
 			break;
diff --git a/criu/include/cr_options.h b/criu/include/cr_options.h
index eda07e892..fde9adae0 100644
--- a/criu/include/cr_options.h
+++ b/criu/include/cr_options.h
@@ -50,8 +50,6 @@  struct irmap_path_opt {
 
 struct cr_options {
 	int			final_state;
-	char			*show_dump_file;
-	char			*show_fmt;
 	int			check_extra_features;
 	int			check_experimental_features;
 	bool			show_pages_content;