| 376 | } |
| 377 | |
| 378 | ValueTree CtrlrLuaMethodManager::findGroupRecursive(ValueTree treeToSearch, const Uuid &groupUuid) |
| 379 | { |
| 380 | for (int i=0; i<treeToSearch.getNumChildren(); i++) |
| 381 | { |
| 382 | if (treeToSearch.getChild(i).hasType(Ids::luaMethodGroup)) |
| 383 | { |
| 384 | if (treeToSearch.getChild(i).getProperty(Ids::uuid) == groupUuid.toString()) |
| 385 | { |
| 386 | return (treeToSearch.getChild(i)); |
| 387 | } |
| 388 | else |
| 389 | { |
| 390 | ValueTree t = findGroupRecursive(treeToSearch.getChild(i), groupUuid); |
| 391 | if (t.isValid()) |
| 392 | { |
| 393 | return (t); |
| 394 | } |
| 395 | } |
| 396 | } |
| 397 | } |
| 398 | return (ValueTree()); |
| 399 | } |
| 400 | |
| 401 | const String CtrlrLuaMethodManager::cleanupMethod(XmlElement *methodElement, const String &methodName) |
| 402 | { |
nothing calls this directly
no test coverage detected