From 7453c955df15180a96ff95858f6c2be987f13cb0 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Wed, 15 Mar 2017 15:30:59 -0400 Subject: [PATCH] main: Remove unused "preview" commands Closes: #683 Approved by: jlebon --- src/app/main.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/app/main.c b/src/app/main.c index c6f3e797..b6c81d78 100644 --- a/src/app/main.c +++ b/src/app/main.c @@ -63,10 +63,6 @@ static RpmOstreeCommand supported_commands[] = { { NULL } }; -static RpmOstreeCommand preview_commands[] = { - { NULL } -}; - static RpmOstreeCommand legacy_alias_commands[] = { { "pkg-add", RPM_OSTREE_BUILTIN_FLAG_REQUIRES_ROOT, rpmostree_builtin_pkg_add }, @@ -121,13 +117,6 @@ option_context_new_with_commands (void) command++; } - command = preview_commands; - while (command->name != NULL) - { - g_string_append_printf (summary, "\n %s (preview)", command->name); - command++; - } - g_option_context_set_summary (context, summary->str); g_string_free (summary, TRUE); @@ -321,9 +310,6 @@ main (int argc, if (!command) command = lookup_command_of_type (legacy_alias_commands, command_name, NULL); - if (!command) - command = lookup_command_of_type (preview_commands, command_name, "a preview"); - if (!command) command = lookup_command_of_type (experimental_commands, command_name, "an experimental");