| 772 | } |
| 773 | |
| 774 | static 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 | |
| 785 | static bool deleteConstraint(std::string name) |
| 786 | { |
no test coverage detected