From e7f7dde546c5ae8e68d7abc3fbe84b27dea021fd Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 12 Dec 2023 13:27:17 -0500 Subject: [PATCH] Formats: Make use of std::erase_if --- Source/Core/Core/IOS/ES/Formats.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Source/Core/Core/IOS/ES/Formats.cpp b/Source/Core/Core/IOS/ES/Formats.cpp index d740f249bb..2826f7aed5 100644 --- a/Source/Core/Core/IOS/ES/Formats.cpp +++ b/Source/Core/Core/IOS/ES/Formats.cpp @@ -614,9 +614,7 @@ std::string SharedContentMap::AddSharedContent(const std::array& sha1) bool SharedContentMap::DeleteSharedContent(const std::array& sha1) { - m_entries.erase(std::remove_if(m_entries.begin(), m_entries.end(), - [&sha1](const auto& entry) { return entry.sha1 == sha1; }), - m_entries.end()); + std::erase_if(m_entries, [&sha1](const auto& entry) { return entry.sha1 == sha1; }); return WriteEntries(); }