main: Remove unused "preview" commands

Closes: #683
Approved by: jlebon
This commit is contained in:
Colin Walters 2017-03-15 15:30:59 -04:00 committed by Atomic Bot
parent 12c34bb249
commit 7453c955df

View File

@ -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");