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.
srht-ci
Andri Yngvason 2023-01-15 17:19:51 +00:00
parent bbea931f8c
commit d8bc5cd328
1 changed files with 0 additions and 9 deletions

View File

@ -350,11 +350,6 @@ static void pretty_version(json_t* data)
static void pretty_client_list(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; size_t i;
json_t* value; json_t* value;
json_array_foreach(data, i, 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) 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; size_t i;
json_t* value; json_t* value;
json_array_foreach(data, i, value) { json_array_foreach(data, i, value) {