From af8eb4386b8c2d898366d3892c343105ae9ea4e0 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Sat, 1 Jan 2011 21:46:56 +0100 Subject: Added 'find' command to the telnet server and removed find_artist call in music::init(). --- music.cpp | 7 ------- 1 file changed, 7 deletions(-) (limited to 'music.cpp') 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 ml = find_artist("a"); - for(std::vector::iterator it = ml.begin(); it != ml.end(); it++) { - std::cout << "result: " << (*it)->path << std::endl; - } } MusicListing::p music::get(const std::vector& path) { @@ -68,7 +62,6 @@ std::vector music::find_artist(const std::string artist) { boost::shared_ptr ml(new MusicTrack(*it)); results.push_back(ml); } - std::cout << "results size: " << results.size() << std::endl; return results; } -- cgit v1.2.3