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

Method removeGroup

Source/Lua/Methods/CtrlrLuaMethodManager.cpp:179–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177}
178
179void CtrlrLuaMethodManager::removeGroup(ValueTree groupToRemove)
180{
181 ValueTree parent = groupToRemove.getParent();
182
183 for (int i=0; i<groupToRemove.getNumChildren(); i++)
184 {
185 ValueTree child = groupToRemove.getChild(i);
186 if (child.isValid() && child.hasType(Ids::luaMethod))
187 {
188 removeMethod (child.getProperty(Ids::uuid).toString());
189 }
190 }
191 parent.removeChild (groupToRemove, nullptr);
192}
193
194void CtrlrLuaMethodManager::addGroup (const String &groupName, const Uuid parentUuid, const Uuid groupUuid)
195{

Callers

nothing calls this directly

Calls 6

getNumChildrenMethod · 0.80
getParentMethod · 0.45
getChildMethod · 0.45
isValidMethod · 0.45
toStringMethod · 0.45
getPropertyMethod · 0.45

Tested by

no test coverage detected