mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-16 15:29:55 +00:00
Remove unused argument
This commit is contained in:
parent
597d1853ee
commit
85edc49f2f
1 changed files with 2 additions and 2 deletions
|
@ -228,7 +228,7 @@ bool Misc::ResourceHelpers::isHiddenMarker(const ESM::RefId& id)
|
||||||
|
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
std::string getLODMeshNameImpl(std::string resPath, const VFS::Manager* vfs, std::string_view pattern)
|
std::string getLODMeshNameImpl(std::string resPath, std::string_view pattern)
|
||||||
{
|
{
|
||||||
if (auto w = Misc::findExtension(resPath); w != std::string::npos)
|
if (auto w = Misc::findExtension(resPath); w != std::string::npos)
|
||||||
resPath.insert(w, pattern);
|
resPath.insert(w, pattern);
|
||||||
|
@ -237,7 +237,7 @@ namespace
|
||||||
|
|
||||||
std::string getBestLODMeshName(std::string const& resPath, const VFS::Manager* vfs, std::string_view pattern)
|
std::string getBestLODMeshName(std::string const& resPath, const VFS::Manager* vfs, std::string_view pattern)
|
||||||
{
|
{
|
||||||
if (const auto& result = getLODMeshNameImpl(resPath, vfs, pattern); vfs->exists(result))
|
if (std::string result = getLODMeshNameImpl(resPath, pattern); vfs->exists(result))
|
||||||
return result;
|
return result;
|
||||||
return resPath;
|
return resPath;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue