From: Mikko Rasa Date: Thu, 15 Nov 2012 21:03:43 +0000 (+0200) Subject: Simplify DirectorySource path management X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=c634c9a6aac3fbedecc6e2c8ef69fc11dabd49d0;p=libs%2Fdatafile.git Simplify DirectorySource path management --- diff --git a/source/directorysource.cpp b/source/directorysource.cpp index 4ee3b80..b1b19a1 100644 --- a/source/directorysource.cpp +++ b/source/directorysource.cpp @@ -8,17 +8,6 @@ using namespace std; namespace Msp { namespace DataFile { -DirectorySource::DirectorySource() -{ - set_directory("."); -} - -void DirectorySource::set_directory(const FS::Path &d) -{ - dirs.clear(); - add_directory(d); -} - void DirectorySource::add_directory(const FS::Path &d) { dirs.push_back(d); diff --git a/source/directorysource.h b/source/directorysource.h index cd82ece..0710225 100644 --- a/source/directorysource.h +++ b/source/directorysource.h @@ -16,9 +16,6 @@ private: std::list dirs; public: - DirectorySource(); - - void set_directory(const FS::Path &); void add_directory(const FS::Path &); virtual bool is_loadable(const CollectionItemTypeBase &, const std::string &) const;