Remove debug print and redundant checks.

This commit is contained in:
BenDol 2014-07-13 23:12:56 +12:00
parent 0c77179c46
commit 74979ca16a
2 changed files with 2 additions and 5 deletions

View File

@ -413,11 +413,9 @@ function startTradeWith(thing)
end end
function isMenuHookCategoryEmpty(category) function isMenuHookCategoryEmpty(category)
if category and not table.empty(category) then if category then
for _,opt in pairs(category) do for _,opt in pairs(category) do
if opt and not table.empty(opt) then if opt then return false end
return false
end
end end
end end
return true return true

View File

@ -256,7 +256,6 @@ end
function UIMinimap:onStyleApply(styleName, styleNode) function UIMinimap:onStyleApply(styleName, styleNode)
for name,value in pairs(styleNode) do for name,value in pairs(styleNode) do
print(name)
if name == 'autowalk' then if name == 'autowalk' then
print(value) print(value)
self.autowalk = value self.autowalk = value