GeckoCodeConfig: Make use of std::erase_if

This commit is contained in:
Lioncash 2023-12-12 13:26:16 -05:00
parent 84ae0c1c7e
commit ff0e7fbf08

View file

@ -138,9 +138,7 @@ std::vector<GeckoCode> LoadCodes(const Common::IniFile& globalIni, const Common:
GeckoCode gcode;
lines.erase(std::remove_if(lines.begin(), lines.end(),
[](const auto& line) { return line.empty() || line[0] == '#'; }),
lines.end());
std::erase_if(lines, [](const auto& line) { return line.empty() || line[0] == '#'; });
for (auto& line : lines)
{