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:
QwertyChouskie 2021-10-30 14:53:42 -07:00 committed by Benau
parent 9ca2c2eddc
commit 14c1f7b344

View File

@ -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;
if (file_manager->fileExists(test_path))
{