FileSystem: Remove now-unused function

pull/3563/head
Stenzek 2 months ago
parent d944966db6
commit e470269d01
No known key found for this signature in database

@ -589,15 +589,6 @@ std::string_view Path::GetExtension(std::string_view path)
return path.substr(pos + 1); 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) std::string Path::ReplaceExtension(std::string_view path, std::string_view new_extension)
{ {
const std::string_view::size_type pos = path.rfind('.'); const std::string_view::size_type pos = path.rfind('.');

@ -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. /// Returns a view of the extension of a filename.
std::string_view GetExtension(std::string_view path); 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. /// Replaces the extension of a filename with another.
std::string ReplaceExtension(std::string_view path, std::string_view new_extension); std::string ReplaceExtension(std::string_view path, std::string_view new_extension);

Loading…
Cancel
Save