MCPcopy Create free account
hub / github.com/ddnet/ddnet / Remove

Method Remove

src/engine/client/serverbrowser.cpp:1935–1942  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1933}
1934
1935void CFavoriteCommunityFilterList::Remove(const char *pCommunityId)
1936{
1937 auto FoundCommunity = std::find(m_vEntries.begin(), m_vEntries.end(), CCommunityId(pCommunityId));
1938 if(FoundCommunity != m_vEntries.end())
1939 {
1940 m_vEntries.erase(FoundCommunity);
1941 }
1942}
1943
1944void CFavoriteCommunityFilterList::Clear()
1945{

Calls 4

CCommunityIdClass · 0.85
beginMethod · 0.80
endMethod · 0.80
CountryTypeFilterKeyMethod · 0.80

Tested by

no test coverage detected