From 0823711106912fc75f1bdb2461243b12ba670f8b Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 7 Aug 2012 23:59:17 +0200 Subject: locate: add a per-item "fold_case" flag Merge locate_song_search() and locate_song_match(). --- src/queue_print.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'src/queue_print.c') diff --git a/src/queue_print.c b/src/queue_print.c index 032a7dec5..d956bbf98 100644 --- a/src/queue_print.c +++ b/src/queue_print.c @@ -91,18 +91,6 @@ queue_print_changes_position(struct client *client, const struct queue *queue, i, queue_position_to_id(queue, i)); } -void -queue_search(struct client *client, const struct queue *queue, - const struct locate_item_list *criteria) -{ - for (unsigned i = 0; i < queue_length(queue); i++) { - const struct song *song = queue_get(queue, i); - - if (locate_song_search(song, criteria)) - queue_print_song_info(client, queue, i); - } -} - void queue_find(struct client *client, const struct queue *queue, const struct locate_item_list *criteria) @@ -110,7 +98,7 @@ queue_find(struct client *client, const struct queue *queue, for (unsigned i = 0; i < queue_length(queue); i++) { const struct song *song = queue_get(queue, i); - if (locate_song_match(song, criteria)) + if (locate_list_song_match(song, criteria)) queue_print_song_info(client, queue, i); } } -- cgit v1.2.3