summaryrefslogtreecommitdiff
path: root/src/PlaylistPrint.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-23 23:30:12 +0100
committerMax Kellermann <max@duempel.org>2014-01-23 23:30:12 +0100
commitf1f19841bdd291c055f59b6603f69278c66366d8 (patch)
tree96d674b367234c966df4055686566354a0852072 /src/PlaylistPrint.cxx
parent655ad344140ee250f8becf67544dbe035a3460b1 (diff)
playlist/*: move to playlist/plugins/
Diffstat (limited to 'src/PlaylistPrint.cxx')
-rw-r--r--src/PlaylistPrint.cxx45
1 files changed, 0 insertions, 45 deletions
diff --git a/src/PlaylistPrint.cxx b/src/PlaylistPrint.cxx
index 38d63f4e8..63972f712 100644
--- a/src/PlaylistPrint.cxx
+++ b/src/PlaylistPrint.cxx
@@ -20,11 +20,8 @@
#include "config.h"
#include "PlaylistPrint.hxx"
#include "PlaylistFile.hxx"
-#include "PlaylistAny.hxx"
-#include "PlaylistSong.hxx"
#include "Playlist.hxx"
#include "QueuePrint.hxx"
-#include "SongEnumerator.hxx"
#include "SongPrint.hxx"
#include "DatabaseGlue.hxx"
#include "DatabasePlugin.hxx"
@@ -145,45 +142,3 @@ spl_print(Client &client, const char *name_utf8, bool detail,
return true;
}
-
-static void
-playlist_provider_print(Client &client, const char *uri,
- SongEnumerator &e, bool detail)
-{
- const std::string base_uri = uri != nullptr
- ? PathTraitsUTF8::GetParent(uri)
- : std::string(".");
-
- DetachedSong *song;
- while ((song = e.NextSong()) != nullptr) {
- if (playlist_check_translate_song(*song, base_uri.c_str(),
- false)) {
- if (detail)
- song_print_info(client, *song);
- else
- song_print_uri(client, *song);
- }
-
- delete song;
- }
-}
-
-bool
-playlist_file_print(Client &client, const char *uri, bool detail)
-{
- Mutex mutex;
- Cond cond;
-
- InputStream *is;
- SongEnumerator *playlist = playlist_open_any(uri, mutex, cond, &is);
- if (playlist == nullptr)
- return false;
-
- playlist_provider_print(client, uri, *playlist, detail);
- delete playlist;
-
- if (is != nullptr)
- is->Close();
-
- return true;
-}