diff options
author | Max Kellermann <max@duempel.org> | 2009-01-24 14:55:28 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-01-24 14:55:28 +0100 |
commit | cf9595df187d005489f8b94ed27dba2a6c94fd78 (patch) | |
tree | 8ac4d3bb1216b3be378d7e50b8cdda0a16f23dbd /src/playlist.c | |
parent | 53e712aca40d631bd26a2af4c0731aa8924cde5b (diff) | |
download | mpd-cf9595df187d005489f8b94ed27dba2a6c94fd78.tar.gz mpd-cf9595df187d005489f8b94ed27dba2a6c94fd78.tar.xz mpd-cf9595df187d005489f8b94ed27dba2a6c94fd78.zip |
playlist: removed locate functions to queue_print.c
Now playlist.c does not contain any protocol specific code anymore.
Diffstat (limited to 'src/playlist.c')
-rw-r--r-- | src/playlist.c | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/src/playlist.c b/src/playlist.c index d63180305..98fac5b7b 100644 --- a/src/playlist.c +++ b/src/playlist.c @@ -1177,39 +1177,6 @@ enum playlist_result loadPlaylist(const char *utf8file) return PLAYLIST_RESULT_SUCCESS; } -void -searchForSongsInPlaylist(struct client *client, - unsigned numItems, const struct locate_item *items) -{ - unsigned i; - struct locate_item *new_items = - g_memdup(items, sizeof(items[0]) * numItems); - - for (i = 0; i < numItems; i++) - new_items[i].needle = g_utf8_casefold(new_items[i].needle, -1); - - for (i = 0; i < queue_length(&playlist.queue); i++) { - const struct song *song = queue_get(&playlist.queue, i); - - if (strstrSearchTags(song, numItems, items)) - queue_print_song_info(client, &playlist.queue, i); - } - - freeLocateTagItemArray(numItems, new_items); -} - -void -findSongsInPlaylist(struct client *client, - unsigned numItems, const struct locate_item *items) -{ - for (unsigned i = 0; i < queue_length(&playlist.queue); i++) { - const struct song *song = queue_get(&playlist.queue, i); - - if (tagItemsFoundAndMatches(song, numItems, items)) - queue_print_song_info(client, &playlist.queue, i); - } -} - /* * Not supporting '/' was done out of laziness, and we should really * strive to support it in the future. |