| 48 | } |
| 49 | |
| 50 | void CtrlrLuaMethod::remove() // this is called by the manager to remove us permanently, cleanup and stuff |
| 51 | { |
| 52 | setValid (false); |
| 53 | |
| 54 | if (luaObject && luaObject->getObject()) |
| 55 | { |
| 56 | if (luaObject->getObject().is_valid()) |
| 57 | { |
| 58 | luabind::globals (owner.getOwner().getLuaState()) [(const char *)getName().toUTF8()] = 0; |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | methodTree.removeListener (this); |
| 63 | masterReference.clear(); |
| 64 | deleteAndZero (luaObject); |
| 65 | } |
| 66 | |
| 67 | bool CtrlrLuaMethod::isSourceInFile() |
| 68 | { |
no test coverage detected