From a236a439cc84035a70c3f43fd926d39b9d8caaf7 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 13 Sep 2011 21:24:22 +0200 Subject: db_print: move code to function db_selection_print() Use it in handle_lsinfo(), and eliminate some duplicate code. --- src/song_print.c | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'src/song_print.c') diff --git a/src/song_print.c b/src/song_print.c index e0a04ddb..2065b336 100644 --- a/src/song_print.c +++ b/src/song_print.c @@ -94,18 +94,3 @@ song_print_info(struct client *client, struct song *song) if (song->tag) tag_print(client, song->tag); } - -static int -song_print_info_x(struct song *song, void *data) -{ - struct client *client = data; - song_print_info(client, song); - - return 0; -} - -void -songvec_print(struct client *client, const struct songvec *sv) -{ - songvec_for_each(sv, song_print_info_x, client); -} -- cgit v1.2.3