mirror of
https://github.com/stenzek/duckstation.git
synced 2026-02-16 19:34:38 +00:00
FileSystem: Remove now-unused function
This commit is contained in:
@@ -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('.');
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user