summaryrefslogtreecommitdiff
path: root/music.cpp
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2011-01-01 21:46:56 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2011-01-01 21:46:56 +0100
commitaf8eb4386b8c2d898366d3892c343105ae9ea4e0 (patch)
treebe663554ff775a6d2dc317cf5d636a6e11910d36 /music.cpp
parent14500d43760661ffc3ffb67d929088c27fe46c64 (diff)
Added 'find' command to the telnet server and removed find_artist call in music::init().
Diffstat (limited to 'music.cpp')
-rw-r--r--music.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/music.cpp b/music.cpp
index 295f5e4..772ae9c 100644
--- a/music.cpp
+++ b/music.cpp
@@ -19,12 +19,6 @@ void music::init(std::string root) {
if(boost::algorithm::ends_with(root, "/"))
root = root.substr(0, root.size()-1);
root_directory = root;
-
- // find_artist test
- std::vector<MusicListing::p> ml = find_artist("a");
- for(std::vector<MusicListing::p>::iterator it = ml.begin(); it != ml.end(); it++) {
- std::cout << "result: " << (*it)->path << std::endl;
- }
}
MusicListing::p music::get(const std::vector<std::string>& path) {
@@ -68,7 +62,6 @@ std::vector<MusicListing::p> music::find_artist(const std::string artist) {
boost::shared_ptr<MusicListing> ml(new MusicTrack(*it));
results.push_back(ml);
}
- std::cout << "results size: " << results.size() << std::endl;
return results;
}