FileSystem: Purge GetDisplayNameFromPath()

Redundant function.
This commit is contained in:
Stenzek
2023-12-24 14:03:14 +10:00
committed by Connor McLaughlin
parent 9967d5ca9e
commit d73d698fd5
6 changed files with 13 additions and 24 deletions
-5
View File
@@ -531,11 +531,6 @@ static std::string_view::size_type GetLastSeperatorPosition(const std::string_vi
return last_separator;
}
std::string FileSystem::GetDisplayNameFromPath(const std::string_view& path)
{
return std::string(Path::GetFileName(path));
}
std::string_view Path::GetDirectory(const std::string_view& path)
{
const std::string::size_type pos = GetLastSeperatorPosition(path, false);