From c634c9a6aac3fbedecc6e2c8ef69fc11dabd49d0 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Thu, 15 Nov 2012 23:03:43 +0200 Subject: [PATCH] Simplify DirectorySource path management --- source/directorysource.cpp | 11 ----------- source/directorysource.h | 3 --- 2 files changed, 14 deletions(-) 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; -- 2.45.2