diff options
Diffstat (limited to 'libs/pbd')
-rw-r--r-- | libs/pbd/file_utils.cc | 27 | ||||
-rw-r--r-- | libs/pbd/pbd/file_utils.h | 39 |
2 files changed, 1 insertions, 65 deletions
diff --git a/libs/pbd/file_utils.cc b/libs/pbd/file_utils.cc index 98c8a6fcfc..bc4ad8ee6d 100644 --- a/libs/pbd/file_utils.cc +++ b/libs/pbd/file_utils.cc @@ -146,39 +146,14 @@ find_files_matching_pattern (vector<string>& result, find_files_matching_pattern (result, paths, tmp); } -void -find_matching_files_in_directory (const std::string& directory, - const Glib::PatternSpec& pattern, - vector<std::string>& result) -{ - find_files_matching_pattern (result, directory, pattern); -} - -void -find_matching_files_in_directories (const vector<std::string>& paths, - const Glib::PatternSpec& pattern, - vector<std::string>& result) -{ - find_files_matching_pattern (result, paths, pattern); -} - -void -find_matching_files_in_search_path (const Searchpath& search_path, - const Glib::PatternSpec& pattern, - vector<std::string>& result) -{ - find_files_matching_pattern (result, search_path, pattern); -} - bool find_file_in_search_path(const Searchpath& search_path, const string& filename, std::string& result) { vector<std::string> tmp; - Glib::PatternSpec tmp_pattern(filename); - find_matching_files_in_search_path (search_path, tmp_pattern, tmp); + find_files_matching_pattern (tmp, search_path, filename); if (tmp.size() == 0) { diff --git a/libs/pbd/pbd/file_utils.h b/libs/pbd/pbd/file_utils.h index 588e48217a..8fef0c4d45 100644 --- a/libs/pbd/pbd/file_utils.h +++ b/libs/pbd/pbd/file_utils.h @@ -90,45 +90,6 @@ find_files_matching_pattern (std::vector<std::string>& result, const std::string& pattern); /** - * Takes a directory path and returns all the files in the directory - * matching a particular pattern. - * - * @param directory A directory path - * @param pattern A Glib::PatternSpec used to match the files. - * @param result A vector in which to place the resulting matches. - */ -LIBPBD_API void -find_matching_files_in_directory (const std::string& directory, - const Glib::PatternSpec& pattern, - std::vector<std::string>& result); - -/** - * Takes a number of directory paths and returns all the files matching - * a particular pattern. - * - * @param paths A vector containing the Absolute paths - * @param pattern A Glib::PatternSpec used to match the files - * @param result A vector in which to place the resulting matches. - */ -LIBPBD_API void -find_matching_files_in_directories (const std::vector<std::string>& directory_paths, - const Glib::PatternSpec& pattern, - std::vector<std::string>& result); - -/** - * Takes a Searchpath and puts a list of all the files in the search path - * that match pattern into the result vector. - * - * @param search_path A Searchpath - * @param pattern A Glib::PatternSpec used to match the files - * @param result A vector in which to place the resulting matches. - */ -LIBPBD_API void -find_matching_files_in_search_path (const Searchpath& search_path, - const Glib::PatternSpec& pattern, - std::vector<std::string>& result); - -/** * Takes a search path and a file name and place the full path * to that file in result if it is found within the search path. * |