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:
parent
5a022532fd
commit
5af72ba2c4
1 changed files with 0 additions and 17 deletions
|
|
@ -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; });
|
||||
|
|
|
|||
Loading…
Reference in a new issue