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

Function delete_constraint

plugins/workflow.cpp:774–783  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

772}
773
774static void delete_constraint(ItemConstraint *cv)
775{
776 int idx = linear_index(constraints, cv);
777 if (idx >= 0)
778 vector_erase_at(constraints, idx);
779
780 World::DeletePersistentData(cv->config);
781 World::DeletePersistentData(cv->history);
782 delete cv;
783}
784
785static bool deleteConstraint(std::string name)
786{

Callers 2

deleteConstraintFunction · 0.85
workflow_cmdFunction · 0.85

Calls 2

vector_erase_atFunction · 0.85
linear_indexFunction · 0.50

Tested by

no test coverage detected