MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / removeMethod

Method removeMethod

Source/Lua/Methods/CtrlrLuaMethodManager.cpp:568–581  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

566}
567
568void CtrlrLuaMethodManager::removeMethod (const Uuid methodUuid)
569{
570 CtrlrLuaMethod *method = getMethodByUuid(methodUuid);
571 if (method)
572 {
573 ValueTree child = method->getMethodTree();
574 ValueTree parent = child.getParent();
575
576 method->remove();
577 parent.removeChild (child, nullptr);
578
579 methods.removeObject (method);
580 }
581}
582
583const int CtrlrLuaMethodManager::getNumMethods()
584{

Callers 1

itemClickedMethod · 0.80

Calls 3

getParentMethod · 0.45
removeMethod · 0.45
removeObjectMethod · 0.45

Tested by

no test coverage detected