diff --git a/BaseLib/FileFinder.cpp b/BaseLib/FileFinder.cpp index c365b0b8fcf1471a04dcf94ebdd73b93b3ceb531..bfcd7ca812a972bc990a6abc0499069620d3887d 100644 --- a/BaseLib/FileFinder.cpp +++ b/BaseLib/FileFinder.cpp @@ -52,24 +52,4 @@ void FileFinder::addDirectory(std::string const& dir) _directories.push_back(dir); } } - -std::string FileFinder::getPath(std::string const& filename) const -{ - if (_directories.empty()) - ERR("FileFinder::getPath(): No directories set."); - - for (auto const& dir : _directories) - { - std::string testDir(dir); - std::ifstream is(testDir.append(filename).c_str()); - if (is.good()) - { - is.close(); - return testDir; - } - } - ERR("FileFinder::getPath(): File not found."); - return filename; -} - -} // end namespace BaseLib +} // namespace BaseLib diff --git a/BaseLib/FileFinder.h b/BaseLib/FileFinder.h index 6214f90777cce0895a0e4653ed6d165601e02b6e..841085a22ac803b8a980d9d9050ec90ee71c8b10 100644 --- a/BaseLib/FileFinder.h +++ b/BaseLib/FileFinder.h @@ -45,13 +45,6 @@ public: */ void addDirectory(std::string const& dir); - /** - * Given a filename, this method will return the complete path where this file can be found. - * If the file is located in more than one of the directories in the search list, only the - * first location will be returned. - */ - std::string getPath(std::string const& filename) const; - private: std::vector<std::string> _directories; };