Renamed unused loop identifiers to _
This commit is contained in:
parent
9f75b0dc9d
commit
03693e7aa1
10
init.lua
10
init.lua
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue