Move 'template_search_path()' and 'route_template_search_path()' into 'libs/ardour...
[ardour.git] / libs / ardour / template_utils.cc
index b912fdc446620a6630f352f5ef6337226ef9865b..8efe3115366594cbebc75d0de974a13b1b07fc80 100644 (file)
@@ -30,6 +30,7 @@
 #include "ardour/directory_names.h"
 #include "ardour/filesystem_paths.h"
 #include "ardour/filename_extensions.h"
+#include "ardour/search_paths.h"
 #include "ardour/io.h"
 
 using namespace std;
@@ -37,22 +38,6 @@ using namespace PBD;
 
 namespace ARDOUR {
 
-Searchpath
-template_search_path ()
-{
-       Searchpath spath (ardour_data_search_path());
-       spath.add_subdirectory_to_paths(templates_dir_name);
-       return spath;
-}
-
-Searchpath
-route_template_search_path ()
-{
-       Searchpath spath (ardour_data_search_path());
-       spath.add_subdirectory_to_paths(route_templates_dir_name);
-       return spath;
-}
-
 std::string
 user_template_directory ()
 {