Remove dead code block
The way this code was written, it would never be triggered in any real scenario (confirmed by running STK with a Log::fatal before the return)
This commit is contained in:
parent
9ca2c2eddc
commit
14c1f7b344
@ -2938,13 +2938,6 @@ std::string Skin::getThemedIcon(const std::string& relative_path) const
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (relative_path2.find(SkinConfig::m_data_path) != std::string::npos &&
|
|
||||||
file_manager->fileExists(relative_path2))
|
|
||||||
{
|
|
||||||
// Absolute path given
|
|
||||||
return relative_path2;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string test_path = SkinConfig::m_data_path + "data/" + relative_path2;
|
std::string test_path = SkinConfig::m_data_path + "data/" + relative_path2;
|
||||||
if (file_manager->fileExists(test_path))
|
if (file_manager->fileExists(test_path))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user