From 7e4ad9b42e60a627ee54e836031f220193b1446b Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Tue, 13 Feb 2024 08:59:43 +0100 Subject: [PATCH] remove legacy host_width --- node.lua | 5 ----- 1 file changed, 5 deletions(-) diff --git a/node.lua b/node.lua index 2b9b253..d0b353d 100644 --- a/node.lua +++ b/node.lua @@ -53,16 +53,11 @@ function node.render() end local title_width = CONFIG.header_font:width(titlebar, CONFIG.output_size) - local host_width = 0 transform() CONFIG.background_color.clear() CONFIG.header_font:write(real_width/2-title_width/2, CONFIG.output_size*0.5, titlebar, CONFIG.output_size, 1,1,1,1) - for idx, service in ipairs(services.services) do - host_width = math.max(host_width, CONFIG.header_font:width(service.host, CONFIG.header_size)) - end - local y = CONFIG.output_size*2 for idx, serv in ipairs(services.services) do header_font_size = CONFIG.header_size