]> git.tdb.fi Git - libs/datafile.git/commitdiff
Simplify DirectorySource path management
authorMikko Rasa <tdb@tdb.fi>
Thu, 15 Nov 2012 21:03:43 +0000 (23:03 +0200)
committerMikko Rasa <tdb@tdb.fi>
Thu, 15 Nov 2012 21:03:43 +0000 (23:03 +0200)
source/directorysource.cpp
source/directorysource.h

index 4ee3b80657eb014bf9bfee540d365879c27fc8c2..b1b19a1faa74e829d2a35dba9adbd39e29170350 100644 (file)
@@ -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);
index cd82ece11e10f606ade3eea92a598da5373e9bdc..0710225cc519a6f8eb87c01101c563136b904899 100644 (file)
@@ -16,9 +16,6 @@ private:
        std::list<FS::Path> 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;