Renamed unused loop identifiers to _

This commit is contained in:
Adrian C. (anrxc) 2009-08-08 17:42:28 +02:00
parent 9f75b0dc9d
commit 03693e7aa1
1 changed files with 5 additions and 5 deletions

View File

@ -132,7 +132,7 @@ function regregister(reg)
for w, i in pairs(registered) do for w, i in pairs(registered) do
if w == reg.widget then if w == reg.widget then
for k, v in pairs(i) do for _, v in pairs(i) do
if v == reg then if v == reg then
already = true already = true
break break
@ -169,7 +169,7 @@ function unregister(widget, keep, reg)
if reg == nil then if reg == nil then
for w, i in pairs(registered) do for w, i in pairs(registered) do
if w == widget then if w == widget then
for k, v in pairs(i) do for _, v in pairs(i) do
reg = unregister(w, keep, v) reg = unregister(w, keep, v)
end end
end end
@ -200,7 +200,7 @@ end
-- {{{ Suspend vicious, halt all widget updates -- {{{ Suspend vicious, halt all widget updates
function suspend() function suspend()
for w, i in pairs(registered) do for w, i in pairs(registered) do
for k, v in pairs(i) do for _, v in pairs(i) do
unregister(w, true, v) unregister(w, true, v)
end end
end end
@ -211,7 +211,7 @@ end
function activate(widget) function activate(widget)
for w, i in pairs(registered) do for w, i in pairs(registered) do
if widget == nil or w == widget then if widget == nil or w == widget then
for k, v in pairs(i) do for _, v in pairs(i) do
regregister(v) regregister(v)
end end
end end
@ -225,7 +225,7 @@ function update(widget, reg, disablecache)
if reg == nil then if reg == nil then
for w, i in pairs(registered) do for w, i in pairs(registered) do
if w == widget then if w == widget then
for k, v in pairs(i) do for _, v in pairs(i) do
update(w, v, disablecache) update(w, v, disablecache)
end end
end end