From 1426fc6df0fa09e1b4ecd54da7e79ba06474e1d5 Mon Sep 17 00:00:00 2001 From: Kevin Date: Mon, 14 Oct 2024 10:27:57 -0300 Subject: core: table.unpack compat in lua --- core/lua/astal/variable.lua | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'core/lua/astal/variable.lua') 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 -- cgit v1.2.3