| 1957 | } |
| 1958 | |
| 1959 | void CFavoriteCommunityFilterList::Clean(const std::vector<CCommunity> &vAllowedCommunities) |
| 1960 | { |
| 1961 | auto It = std::remove_if(m_vEntries.begin(), m_vEntries.end(), [&](const auto &Community) { |
| 1962 | return std::find_if(vAllowedCommunities.begin(), vAllowedCommunities.end(), [&](const CCommunity &AllowedCommunity) { |
| 1963 | return str_comp(Community.Id(), AllowedCommunity.Id()) == 0; |
| 1964 | }) == vAllowedCommunities.end(); |
| 1965 | }); |
| 1966 | m_vEntries.erase(It, m_vEntries.end()); |
| 1967 | } |
| 1968 | |
| 1969 | void CFavoriteCommunityFilterList::Save(IConfigManager *pConfigManager) const |
| 1970 | { |
no test coverage detected