]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
audiod_command: Remove dump_stat_client_list().
authorAndre Noll <maan@tuebingen.mpg.de>
Tue, 30 May 2023 20:48:56 +0000 (22:48 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Wed, 14 Jun 2023 19:17:42 +0000 (21:17 +0200)
It is not very useful and can spam the log.

audiod_command.c

index 743d73a9277802fbb966b373c2af357c14a88155..df357c7a708b77a6c7327572c6b3abfc1daa8d34 100644 (file)
@@ -81,13 +81,6 @@ static int num_clients;
 /** The list of all status items used by para_{server,audiod,gui}. */
 const char *status_item_list[] = {STATUS_ITEMS};
 
-static void dump_stat_client_list(void)
-{
-       struct stat_client *sc;
-
-       list_for_each_entry(sc, &client_list, node)
-               PARA_INFO_LOG("stat client on fd %d\n", sc->fd);
-}
 /**
  * Add a status client to the list.
  *
@@ -121,7 +114,6 @@ static int stat_client_add(int fd, uint64_t mask, int parser_friendly)
        if (parser_friendly)
                new_client->flags = SCF_PARSER_FRIENDLY;
        para_list_add(&new_client->node, &client_list);
-       dump_stat_client_list();
        num_clients++;
        return 1;
 }
@@ -180,7 +172,6 @@ void stat_client_write_item(int item_num)
                        continue;
                /* write error or short write */
                close_stat_client(sc);
-               dump_stat_client_list();
        }
        free(pb.buf);
        free(pfpb.buf);