MCPcopy Create free account
hub / github.com/BatchDrake/SigDigger / removeRecent

Method removeRecent

Suscan/Library.cpp:1369–1388  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1367}
1368
1369bool
1370Singleton::removeRecent(std::string const &name)
1371{
1372 bool found = false;
1373
1374 for (auto p = this->getFirstRecent(); p != this->getLastRecent(); ++p) {
1375 if (*p == name) {
1376 auto current = p;
1377 --current;
1378
1379 this->recentProfiles.erase(p);
1380
1381 p = current;
1382 found = true;
1383 continue;
1384 }
1385 }
1386
1387 return found;
1388}
1389
1390void
1391Singleton::clearRecent(void)

Callers 2

notifyRecentMethod · 0.95
onRecentSelectedMethod · 0.80

Calls 2

getFirstRecentMethod · 0.95
getLastRecentMethod · 0.95

Tested by

no test coverage detected