diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2011-01-01 21:46:56 +0100 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2011-01-01 21:46:56 +0100 |
commit | af8eb4386b8c2d898366d3892c343105ae9ea4e0 (patch) | |
tree | be663554ff775a6d2dc317cf5d636a6e11910d36 /music.cpp | |
parent | 14500d43760661ffc3ffb67d929088c27fe46c64 (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.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
@@ -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; } |