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

Method remove

Source/Lua/Methods/CtrlrLuaMethod.cpp:50–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50void 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
67bool CtrlrLuaMethod::isSourceInFile()
68{

Callers 11

setMethodMethod · 0.45
removeMethodMethod · 0.45
removeDeviceListenerMethod · 0.45
refreshDevicesMethod · 0.45
buttonClickedMethod · 0.45
snipsItemClickedMethod · 0.45
menuItemSelectedMethod · 0.45
removeLayerMethod · 0.45
removeListenerMethod · 0.45

Calls 10

globalsFunction · 0.85
getNameFunction · 0.50
deleteAndZeroFunction · 0.50
getObjectMethod · 0.45
is_validMethod · 0.45
getLuaStateMethod · 0.45
getOwnerMethod · 0.45
toUTF8Method · 0.45
removeListenerMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected