Skip to content

Commit 32f74a0

Browse files
committed
refactor: Removed unused functions
1 parent 0cdb6ef commit 32f74a0

1 file changed

Lines changed: 0 additions & 19 deletions

File tree

lua/bars/utils.lua

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -91,25 +91,6 @@ utils.set_hl = function (hl)
9191
end
9292
end
9393

94-
utils.constant = function (val)
95-
return setmetatable({}, {
96-
__index = function ()
97-
return val;
98-
end,
99-
__newindex = function () end,
100-
101-
__metatable = false
102-
});
103-
end
104-
105-
utils.get_const = function (val)
106-
if type(val) ~= "table" then
107-
return val;
108-
else
109-
return val.value;
110-
end
111-
end
112-
11394
--- Creates a statusline/statuscolumn/winbar/table segment.
11495
---@param text string | nil
11596
---@param hl string | nil

0 commit comments

Comments
 (0)