From da78a89dcdb1ee99e7878423cfd3f587f02225ee Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sun, 19 Dec 2010 14:26:34 +0100 Subject: [PATCH] Remove some pointless code This is a left-over from when widgets where removed (commit d213f19c5ff35d1e18f168205415326fc770cc5e). Signed-off-by: Uli Schlachter --- objects/drawin.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/objects/drawin.c b/objects/drawin.c index fc068f934..a0083396b 100644 --- a/objects/drawin.c +++ b/objects/drawin.c @@ -335,14 +335,6 @@ drawin_detach(lua_State *L, int udx) drawin_t *drawin = luaA_checkudata(L, udx, &drawin_class); if(drawin->screen) { - bool v; - - /* save visible state */ - v = drawin->visible; - drawin->visible = false; - /* restore visibility */ - drawin->visible = v; - drawin_wipe_resources(drawin); foreach(item, globalconf.drawins)