| 352 | } |
| 353 | |
| 354 | ValueTree CtrlrLuaMethodManager::getGroupByUuid(const Uuid &groupUuid) |
| 355 | { |
| 356 | if (managerTree.getChildWithProperty (Ids::uuid, groupUuid.toString()).isValid()) |
| 357 | { |
| 358 | return (managerTree.getChildWithProperty (Ids::uuid, groupUuid.toString())); |
| 359 | } |
| 360 | else |
| 361 | { |
| 362 | for (int i=0; i<managerTree.getNumChildren(); i++) |
| 363 | { |
| 364 | if (managerTree.getChild(i).hasType(Ids::luaMethodGroup) && managerTree.getChild(i).getNumChildren() > 0) |
| 365 | { |
| 366 | ValueTree foundGroup = findGroupRecursive (managerTree.getChild(i), groupUuid); |
| 367 | if (foundGroup.isValid()) |
| 368 | { |
| 369 | return (foundGroup); |
| 370 | } |
| 371 | } |
| 372 | } |
| 373 | } |
| 374 | |
| 375 | return (ValueTree()); |
| 376 | } |
| 377 | |
| 378 | ValueTree CtrlrLuaMethodManager::findGroupRecursive(ValueTree treeToSearch, const Uuid &groupUuid) |
| 379 | { |
nothing calls this directly
no test coverage detected