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

Adrian Reber adrian at lisas.de
Wed Aug 1 19:31:15 MSK 2018


From: Adrian Reber <areber at 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 at redhat.com>
---
 criu/config.c             | 6 ------
 criu/include/cr_options.h | 2 --
 2 files changed, 8 deletions(-)

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;
-- 
2.18.0



More information about the CRIU mailing list