summaryrefslogtreecommitdiff
path: root/core/lua/astal/variable.lua
diff options
context:
space:
mode:
authorKevin <[email protected]>2024-10-14 10:27:57 -0300
committerKevin <[email protected]>2024-10-14 10:27:57 -0300
commit1426fc6df0fa09e1b4ecd54da7e79ba06474e1d5 (patch)
treeebb624a9e058653891713ed8a6b199b5e31652ea /core/lua/astal/variable.lua
parent906e9a30029e4547b73cf5bc566c98bd9198dc0e (diff)
core: table.unpack compat in lua
Diffstat (limited to 'core/lua/astal/variable.lua')
-rw-r--r--core/lua/astal/variable.lua11
1 files changed, 1 insertions, 10 deletions
diff --git a/core/lua/astal/variable.lua b/core/lua/astal/variable.lua
index bd95edb..04cdeb2 100644
--- a/core/lua/astal/variable.lua
+++ b/core/lua/astal/variable.lua
@@ -5,15 +5,6 @@ local Binding = require("astal.binding")
local Time = require("astal.time")
local Process = require("astal.process")
-local function unpack(t, i)
- i = i or 1
- if t[i] == nil then
- return nil
- else
- return t[i], unpack(t, i + 1)
- end
-end
-
---@class Variable
---@field private variable table
---@field private err_handler? function
@@ -282,4 +273,4 @@ return setmetatable(Variable, {
__call = function(_, v)
return Variable.new(v)
end,
-})
+}) \ No newline at end of file