MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / unmarkAsRecent

Method unmarkAsRecent

src/game/ServerList.cpp:360–369  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

358}
359
360void ServerList::unmarkAsRecent(ServerItem* item) {
361 std::string addrname = item->getAddrName();
362 ServerListCache::SRV_STR_MAP::iterator i = serverCache->find(addrname);
363 if (i != serverCache->end()) {
364 i->second.recent = false;
365 }
366
367 item->recent = false;
368 item->recentTime = 0;
369}
370
371void ServerList::markAsFavorite(ServerItem* item) {
372 std::string addrname = item->getAddrName();

Callers 1

keyPressMethod · 0.80

Calls 3

getAddrNameMethod · 0.80
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected