From 74979ca16a9274ffeba08b77732f6d9a15ecd866 Mon Sep 17 00:00:00 2001 From: BenDol Date: Sun, 13 Jul 2014 23:12:56 +1200 Subject: [PATCH] Remove debug print and redundant checks. --- modules/game_interface/gameinterface.lua | 6 ++---- modules/gamelib/ui/uiminimap.lua | 1 - 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/modules/game_interface/gameinterface.lua b/modules/game_interface/gameinterface.lua index 1df39cef..85ef18b7 100644 --- a/modules/game_interface/gameinterface.lua +++ b/modules/game_interface/gameinterface.lua @@ -413,11 +413,9 @@ function startTradeWith(thing) end function isMenuHookCategoryEmpty(category) - if category and not table.empty(category) then + if category then for _,opt in pairs(category) do - if opt and not table.empty(opt) then - return false - end + if opt then return false end end end return true diff --git a/modules/gamelib/ui/uiminimap.lua b/modules/gamelib/ui/uiminimap.lua index db68270d..61eac68b 100644 --- a/modules/gamelib/ui/uiminimap.lua +++ b/modules/gamelib/ui/uiminimap.lua @@ -256,7 +256,6 @@ end function UIMinimap:onStyleApply(styleName, styleNode) for name,value in pairs(styleNode) do - print(name) if name == 'autowalk' then print(value) self.autowalk = value