From d8bc5cd328be25353b88729c5e4e96a1a8748c3e Mon Sep 17 00:00:00 2001 From: Andri Yngvason Date: Sun, 15 Jan 2023 17:19:51 +0000 Subject: [PATCH] ctl-client: Remove messages about how many clients/outputs there are When you type "ls", it doesn't tell you how many files there are. If the user wants to know that, they can use "wc -l" or count them. --- src/ctl-client.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/ctl-client.c b/src/ctl-client.c index 8cc8b86..d7bffbc 100644 --- a/src/ctl-client.c +++ b/src/ctl-client.c @@ -350,11 +350,6 @@ static void pretty_version(json_t* data) static void pretty_client_list(json_t* data) { - int n = json_array_size(data); - - printf("There %s %d VNC client%s connected%s\n", (n == 1) ? "is" : "are", - n, (n == 1) ? "" : "s", (n > 0) ? ":" : "."); - size_t i; json_t* value; json_array_foreach(data, i, value) { @@ -375,10 +370,6 @@ static void pretty_client_list(json_t* data) static void pretty_output_list(json_t* data) { - int n = json_array_size(data); - printf("There %s %d output%s%s\n", (n == 1) ? "is" : "are", - n, (n == 1) ? "" : "s", (n > 0) ? ":" : "."); - size_t i; json_t* value; json_array_foreach(data, i, value) {