diff --git a/libs/pbd/pathscanner.cc b/libs/pbd/pathscanner.cc index eb19c08fe9..fee1ffc84c 100644 --- a/libs/pbd/pathscanner.cc +++ b/libs/pbd/pathscanner.cc @@ -178,40 +178,3 @@ PathScanner::find_files_matching_filter (vector& result, free (pathcopy); return; } - -string -PathScanner::find_first (const string &dirpath, - const string ®exp, - bool match_fullpath, - bool return_fullpath) -{ - vector res; - - find_files_matching_regex (res, dirpath, regexp, - match_fullpath, return_fullpath, 1); - - if (res.size() == 0) { - return string(); - } - - return res.front(); -} - -string -PathScanner::find_first (const string &dirpath, - bool (*filter)(const string &, void *), - void * /*arg*/, - bool match_fullpath, - bool return_fullpath) -{ - vector res; - - find_files_matching_filter (res, dirpath, filter, 0, - match_fullpath, return_fullpath, 1); - - if (res.size() == 0) { - return string(); - } - - return res.front(); -} diff --git a/libs/pbd/pbd/pathscanner.h b/libs/pbd/pbd/pathscanner.h index 28ff2c5dcb..a3a2b76237 100644 --- a/libs/pbd/pbd/pathscanner.h +++ b/libs/pbd/pbd/pathscanner.h @@ -55,18 +55,7 @@ class LIBPBD_API PathScanner bool return_fullpath = true, long limit = -1, bool recurse = false); - - std::string find_first (const std::string &dirpath, - const std::string ®exp, - bool match_fullpath = true, - bool return_fullpath = true); - - std::string find_first (const std::string &dirpath, - bool (*filter)(const std::string &, void *), - void *arg, - bool match_fullpath = true, - bool return_fullpath = true); - + private: void find_files_matching_regex (std::vector& results,