From b8aaceb9b599ab61843165f0c162844f5499bcb4 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 7 Oct 2020 11:30:32 +0200 Subject: [PATCH] systemctl: drop unsused variable original_stdout_is_tty Unused since de9a8fe18e0168b65ae50b6dde2865f647fc92a2. --- src/systemctl/systemctl.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index 115983f98b..ec06243ab3 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;