| 721 | } |
| 722 | |
| 723 | bool GraphModule::removeFunction(boost::string_view name, bool deleteReferences) { |
| 724 | // invalidate the cache |
| 725 | updateLastEditTime(); |
| 726 | |
| 727 | auto funcPtr = functionFromName(name); |
| 728 | |
| 729 | if (funcPtr == nullptr) { return false; } |
| 730 | |
| 731 | removeFunction(*funcPtr, deleteReferences); |
| 732 | |
| 733 | return true; |
| 734 | } |
| 735 | |
| 736 | void GraphModule::removeFunction(GraphFunction& func, bool deleteReferences) { |
| 737 | // invalidate the cache |
no test coverage detected