From 4c6ad5e0590b9950fcf81db16947733c7d0dc030 Mon Sep 17 00:00:00 2001 From: Tanvir Date: Tue, 21 May 2024 21:30:12 +0600 Subject: [PATCH] remove unused arg in base_set_new_pack --- layout/map.lua | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/layout/map.lua b/layout/map.lua index 1a43a39f..87cce61c 100644 --- a/layout/map.lua +++ b/layout/map.lua @@ -349,7 +349,7 @@ function map.construct_itempack(cls, wa, is_vertical, parent) for i, item in ipairs(self.items) do if not item.child or item.child:is_filled() then local size = self.wa[direction] / weight * item.factor - local g = cut_geometry(area, self.is_vertical, size, i) + local g = cut_geometry(area, self.is_vertical, size) if item.child then item.child:set_wa(g) else @@ -694,9 +694,8 @@ function map.reset_tree() end -- Base layout scheme --- TODO: fix unused arg -function map.base_set_new_pack(cls, wa, _, parent, factor) - local pack = map.construct_itempack(cls, wa, true, parent) +function map.base_set_new_pack(cls, wa, is_vertical, parent, factor) + local pack = map.construct_itempack(cls, wa, is_vertical, parent) table.insert(parent.items, { child = pack, factor = factor or 1 }) return pack end