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

Function stop_protect

plugins/workflow.cpp:408–419  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

406 ******************************/
407
408static void stop_protect(color_ostream &out)
409{
410 pending_recover.clear();
411
412 if (!known_jobs.empty())
413 out.print("Unprotecting {} jobs.\n", known_jobs.size());
414
415 for (TKnownJobs::iterator it = known_jobs.begin(); it != known_jobs.end(); ++it)
416 delete it->second;
417
418 known_jobs.clear();
419}
420
421static void cleanup_state(color_ostream &out)
422{

Callers 2

cleanup_stateFunction · 0.85

Calls 6

clearMethod · 0.45
emptyMethod · 0.45
printMethod · 0.45
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected