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

Function deleteConstraint

plugins/workflow.cpp:785–797  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

783}
784
785static bool deleteConstraint(std::string name)
786{
787 for (size_t i = 0; i < constraints.size(); i++)
788 {
789 if (constraints[i]->config.val() != name)
790 continue;
791
792 delete_constraint(constraints[i]);
793 return true;
794 }
795
796 return false;
797}
798
799/******************************
800 * JOB-CONSTRAINT MAPPING *

Callers 1

workflow_cmdFunction · 0.85

Calls 2

delete_constraintFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected