MCPcopy Create free account
hub / github.com/DFHack/dfhack / autobutcher_removeFromWatchList

Function autobutcher_removeFromWatchList

plugins/autobutcher.cpp:851–858  ·  view source on GitHub ↗

remove entry from watchlist

Source from the content-addressed store, hash-verified

849
850// remove entry from watchlist
851static void autobutcher_removeFromWatchList(color_ostream &out, unsigned id) {
852 if (watched_races.count(id)) {
853 DEBUG(control,out).print("removing watchlist entry\n");
854 WatchedRace * w = watched_races[id];
855 w->RemoveConfig(out);
856 watched_races.erase(id);
857 }
858}
859
860// set default target values for new races
861static void autobutcher_setDefaultTargetNew(color_ostream &out, unsigned fk, unsigned mk, unsigned fa, unsigned ma) {

Callers

nothing calls this directly

Calls 4

RemoveConfigMethod · 0.80
countMethod · 0.45
printMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected