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

Function remove_seed_config

plugins/seedwatch.cpp:77–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75 return watched_seeds[id];
76}
77static void remove_seed_config(color_ostream &out, int id) {
78 if (!watched_seeds.count(id))
79 return;
80 DEBUG(control,out).print("removing persistent key for seed type {}\n", id);
81 World::DeletePersistentData(watched_seeds[id]);
82 watched_seeds.erase(id);
83}
84
85// this validation removes configuration data from versions prior to 50.09-r3
86// it can be removed once saves from 50.09 are no longer loadable

Callers 1

set_targetFunction · 0.85

Calls 3

countMethod · 0.45
printMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected