From: Lennart Poettering Date: Wed, 7 Oct 2020 09:30:32 +0000 (+0200) Subject: systemctl: drop unsused variable original_stdout_is_tty X-Git-Tag: v247-rc1~112 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b8aaceb9b599ab61843165f0c162844f5499bcb4;p=thirdparty%2Fsystemd.git systemctl: drop unsused variable original_stdout_is_tty Unused since de9a8fe18e0168b65ae50b6dde2865f647fc92a2. --- diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index 115983f98bb..ec06243ab3f 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -191,8 +191,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 */ @@ -9401,11 +9399,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;