From b827a398a7db01429eca0fde7d5a80fd8fbb41af Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Wed, 26 Nov 2014 15:02:00 -0500 Subject: [PATCH] RpmOstreeCommand: Remove unused 'flags' member There are currently no command flags defined, but if we need any they would likely be passed to the custom GOptionContext parse function as in OSTree. --- src/main.c | 12 ++++++------ src/rpmostree-builtins.h | 1 - 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/main.c b/src/main.c index a1d308bb..a4b2e94b 100644 --- a/src/main.c +++ b/src/main.c @@ -34,13 +34,13 @@ static RpmOstreeCommand commands[] = { #ifdef HAVE_COMPOSE_TOOLING - { "compose", rpmostree_builtin_compose, 0 }, + { "compose", rpmostree_builtin_compose }, #endif - { "upgrade", rpmostree_builtin_upgrade, 0 }, - { "rebase", rpmostree_builtin_rebase, 0 }, - { "rollback", rpmostree_builtin_rollback, 0 }, - { "status", rpmostree_builtin_status, 0 }, - { "rpm", rpmostree_builtin_rpm, 0 }, + { "upgrade", rpmostree_builtin_upgrade }, + { "rebase", rpmostree_builtin_rebase }, + { "rollback", rpmostree_builtin_rollback }, + { "status", rpmostree_builtin_status }, + { "rpm", rpmostree_builtin_rpm }, { NULL } }; diff --git a/src/rpmostree-builtins.h b/src/rpmostree-builtins.h index c08c3c4d..12f25802 100644 --- a/src/rpmostree-builtins.h +++ b/src/rpmostree-builtins.h @@ -27,7 +27,6 @@ G_BEGIN_DECLS typedef struct { const char *name; gboolean (*fn) (int argc, char **argv, GCancellable *cancellable, GError **error); - int flags; } RpmOstreeCommand; #define BUILTINPROTO(name) gboolean rpmostree_builtin_ ## name (int argc, char **argv, GCancellable *cancellable, GError **error)