]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
main: get rid of ACTION_DONE (#3849)
author0xAX <0xAX@users.noreply.github.com>
Mon, 1 Aug 2016 10:38:25 +0000 (13:38 +0300)
committerLennart Poettering <lennart@poettering.net>
Mon, 1 Aug 2016 10:38:25 +0000 (12:38 +0200)
the ACTION_DONE was introduced in the 4288f61921 (dbus: automatically
generate and install introspection files ) commit and was used in
systemd --introspect command.

Later 'introspect' command was removed in the ca2871d9b (bus: remove
static introspection file export) commit and have no users anymore.

So we can remove it.

src/core/main.c

index f2adca7d2b8292a1c0a540b5213ea02c0d0ef3fc..74b8ea139fe1bed9d8652f25123942d8815e306b 100644 (file)
@@ -92,8 +92,7 @@ static enum {
         ACTION_HELP,
         ACTION_VERSION,
         ACTION_TEST,
-        ACTION_DUMP_CONFIGURATION_ITEMS,
-        ACTION_DONE
+        ACTION_DUMP_CONFIGURATION_ITEMS
 } arg_action = ACTION_RUN;
 static char *arg_default_unit = NULL;
 static bool arg_system = false;
@@ -1618,9 +1617,6 @@ int main(int argc, char *argv[]) {
                 unit_dump_config_items(stdout);
                 retval = EXIT_SUCCESS;
                 goto finish;
-        } else if (arg_action == ACTION_DONE) {
-                retval = EXIT_SUCCESS;
-                goto finish;
         }
 
         if (!arg_system &&