systemctl: drop unsused variable original_stdout_is_tty
authorLennart Poettering <lennart@poettering.net>
Wed, 7 Oct 2020 09:30:32 +0000 (11:30 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 8 Dec 2020 13:53:56 +0000 (14:53 +0100)
Unused since de9a8fe18e0168b65ae50b6dde2865f647fc92a2.

(cherry picked from commit b8aaceb9b599ab61843165f0c162844f5499bcb4)

src/systemctl/systemctl.c

index ddcf3bb9a8a900a6c3deed160be9dbdf484758f8..cc81ca1d8c6f1e2a17a22464e90f3b4ef701e80e 100644 (file)
@@ -189,8 +189,6 @@ static int trivial_method(int argc, char *argv[], void *userdata);
 static int halt_now(enum action a);
 static int get_state_one_unit(sd_bus *bus, const char *name, UnitActiveState *active_state);
 
-static bool original_stdout_is_tty;
-
 typedef enum BusFocus {
         BUS_FULL,      /* The full bus indicated via --system or --user */
         BUS_MANAGER,   /* The manager itself, possibly directly, possibly via the bus */
@@ -9219,11 +9217,6 @@ static int run(int argc, char *argv[]) {
 
         sigbus_install();
 
-        /* Explicitly not on_tty() to avoid setting cached value.
-         * This becomes relevant for piping output which might be
-         * ellipsized. */
-        original_stdout_is_tty = isatty(STDOUT_FILENO);
-
         r = parse_argv(argc, argv);
         if (r <= 0)
                 goto finish;