Remove debug print and redundant checks.
This commit is contained in:
parent
0c77179c46
commit
74979ca16a
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue