Remove debug print and redundant checks.

master
BenDol 10 years ago
parent 0c77179c46
commit 74979ca16a

@ -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

@ -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

Loading…
Cancel
Save