FileSystem: Remove now-unused function

This commit is contained in:
Stenzek
2025-09-09 14:17:17 +10:00
parent d944966db6
commit e470269d01
2 changed files with 0 additions and 12 deletions

View File

@@ -589,15 +589,6 @@ std::string_view Path::GetExtension(std::string_view path)
return path.substr(pos + 1);
}
std::string_view Path::StripExtension(std::string_view path)
{
const std::string_view::size_type pos = path.rfind('.');
if (pos == std::string_view::npos)
return path;
return path.substr(0, pos);
}
std::string Path::ReplaceExtension(std::string_view path, std::string_view new_extension)
{
const std::string_view::size_type pos = path.rfind('.');

View File

@@ -53,9 +53,6 @@ std::string MakeRelative(std::string_view path, std::string_view relative_to);
/// Returns a view of the extension of a filename.
std::string_view GetExtension(std::string_view path);
/// Removes the extension of a filename.
std::string_view StripExtension(std::string_view path);
/// Replaces the extension of a filename with another.
std::string ReplaceExtension(std::string_view path, std::string_view new_extension);