13
0

Remove unused API, prefer Session::possible_states

This commit is contained in:
Robin Gareus 2023-06-07 17:39:29 +02:00
parent 91579608b2
commit d2365daafe
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 0 additions and 41 deletions

View File

@ -38,26 +38,6 @@ namespace ARDOUR {
*/
LIBARDOUR_API bool create_backup_file (const std::string & file_path);
/**
* Get the absolute paths to all state files in the directory
* at path directory_path.
*
* @param directory_path The absolute path to a directory.
* @param result vector to contain resulting state files.
*/
LIBARDOUR_API void get_state_files_in_directory (const std::string& directory_path,
std::vector<std::string>& result);
/**
* Given a vector of paths to files, return a vector containing
* the filenames without any extension.
*
* @param file_paths a vector containing the file paths
* @return a vector containing a list of file names without any
* filename extension.
*/
LIBARDOUR_API std::vector<std::string> get_file_names_no_extension (const std::vector<std::string> & file_paths);
} // namespace ARDOUR
#endif

View File

@ -45,25 +45,4 @@ create_backup_file (const std::string & file_path)
return copy_file (file_path, file_path + backup_suffix);
}
void
get_state_files_in_directory (const std::string & directory_path,
vector<std::string> & result)
{
find_files_matching_pattern (result, directory_path,
'*' + string(statefile_suffix));
}
vector<string>
get_file_names_no_extension (const vector<std::string> & file_paths)
{
vector<string> result;
std::transform (file_paths.begin(), file_paths.end(),
std::back_inserter(result), PBD::basename_nosuffix);
sort (result.begin(), result.end(), std::less<string>());
return result;
}
} // namespace ARDOUR