Remove useless loop in hide()

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Vincent Mauge 2009-05-06 23:46:39 +02:00 committed by Julien Danjou
parent 3fca4e0677
commit d1e9c0d5e9
1 changed files with 1 additions and 4 deletions

View File

@ -65,10 +65,7 @@ end
function hide(menu)
-- Remove items from screen
for i = 1, #menu.items do
-- Call mouse_leave to clear menu entry
for k, w in pairs(menu.items[i].wibox.widgets) do
item_leave(menu, i)
end
item_leave(menu, i)
menu.items[i].wibox.screen = nil
end
if menu.active_child then