1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-12-29 12:13:06 +00:00

Remove unused vfs path symbols

This commit is contained in:
elsid 2025-12-14 15:00:58 +01:00
parent 5a022532fd
commit 5af72ba2c4
No known key found for this signature in database
GPG key ID: B845CB9FEE18AB40

View file

@ -77,16 +77,6 @@ namespace VFS::Path
return out;
}
struct PathCharLess
{
bool operator()(char x, char y) const { return normalize(x) < normalize(y); }
};
inline bool pathLess(std::string_view x, std::string_view y)
{
return std::lexicographical_compare(x.begin(), x.end(), y.begin(), y.end(), PathCharLess());
}
inline bool pathEqual(std::string_view x, std::string_view y)
{
if (std::size(x) != std::size(y))
@ -95,13 +85,6 @@ namespace VFS::Path
std::begin(x), std::end(x), std::begin(y), [](char l, char r) { return normalize(l) == normalize(r); });
}
struct PathLess
{
using is_transparent = void;
bool operator()(std::string_view left, std::string_view right) const { return pathLess(left, right); }
};
inline constexpr auto findSeparatorOrExtensionSeparator(auto begin, auto end)
{
return std::find_if(begin, end, [](char v) { return v == extensionSeparator || v == separator; });