Remove some pointless code

This is a left-over from when widgets where removed (commit
d213f19c5f).

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2010-12-19 14:26:34 +01:00
parent 14a7fc4fde
commit da78a89dcd
1 changed files with 0 additions and 8 deletions

View File

@ -335,14 +335,6 @@ drawin_detach(lua_State *L, int udx)
drawin_t *drawin = luaA_checkudata(L, udx, &drawin_class); drawin_t *drawin = luaA_checkudata(L, udx, &drawin_class);
if(drawin->screen) if(drawin->screen)
{ {
bool v;
/* save visible state */
v = drawin->visible;
drawin->visible = false;
/* restore visibility */
drawin->visible = v;
drawin_wipe_resources(drawin); drawin_wipe_resources(drawin);
foreach(item, globalconf.drawins) foreach(item, globalconf.drawins)