X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=stat.c;h=8220fd27f3233499baa9d40035af1cbb2f797995;hp=33fdb8c1d0fec0596482820f447fb57c3754b003;hb=3392bf543022cae60dad0ed76486b574a76b1d66;hpb=7050cf4ed059227268e964604ca1c6597c856167 diff --git a/stat.c b/stat.c index 33fdb8c1..8220fd27 100644 --- a/stat.c +++ b/stat.c @@ -90,7 +90,6 @@ const char *status_item_list[NUM_STAT_ITEMS] = { [SI_AUDIOD_UPTIME] = "audiod_uptime", [SI_SELECTOR] = "dbtool" }; -#define FOR_EACH_STAT_ITEM(i) for (i = 0; i < NUM_STAT_ITEMS; i++) static void dump_stat_client_list(void) { @@ -174,24 +173,6 @@ void stat_client_write(char *msg, int itemnum) PARA_DEBUG_LOG("%d client(s)\n", num_clients); } -/** - * send empty status list - * - * Send to each connected client the full status item list - * with empty values. - */ -void dump_empty_status(void) -{ - int i; - - if (!initialized) - return; - FOR_EACH_STAT_ITEM(i) { - char *tmp = make_message("%s:\n", status_item_list[i]); - stat_client_write(tmp, i); - free(tmp); - } -} /** * check if string is a known status item.