mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-02 18:31:22 +02:00
luainstance: Remove unnecessary hide()/kill() calls from xxxDelete functions
- functions: CWindowDelete() SignalBoxDelete() ComponentsTextDelete() CPictureDelete()
This commit is contained in:
@@ -1863,7 +1863,6 @@ int CLuaInstance::CWindowDelete(lua_State *L)
|
||||
if (!m)
|
||||
return 0;
|
||||
|
||||
m->w->hide();
|
||||
delete m;
|
||||
return 0;
|
||||
}
|
||||
@@ -1940,7 +1939,6 @@ int CLuaInstance::SignalBoxDelete(lua_State *L)
|
||||
if (!m)
|
||||
return 0;
|
||||
|
||||
m->s->kill();
|
||||
delete m;
|
||||
return 0;
|
||||
}
|
||||
@@ -2138,7 +2136,6 @@ int CLuaInstance::ComponentsTextDelete(lua_State *L)
|
||||
if (!m)
|
||||
return 0;
|
||||
|
||||
m->ct->hide();
|
||||
delete m;
|
||||
return 0;
|
||||
}
|
||||
@@ -2284,7 +2281,6 @@ int CLuaInstance::CPictureDelete(lua_State *L)
|
||||
CLuaPicture *m = CPictureCheck(L, 1);
|
||||
if (!m) return 0;
|
||||
|
||||
// m->cp->hide();
|
||||
delete m;
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user