From 5017acaf9d246aa038139b459548cf9a23d84523 Mon Sep 17 00:00:00 2001 From: Fekete Zoltan Date: Sat, 24 Feb 2024 16:02:53 +0100 Subject: [PATCH] Removed unused variable. Removed unnecessary whitespces. --- lib/wibox/widget/systray.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/wibox/widget/systray.lua b/lib/wibox/widget/systray.lua index 5a9d92851..502a11ff7 100644 --- a/lib/wibox/widget/systray.lua +++ b/lib/wibox/widget/systray.lua @@ -100,8 +100,8 @@ function systray:draw(context, cr, width, height) end -- Private API. Does not appear in LDoc. This function is called --- some time to vertically align the systray according to the arguments. -function systray:_get_top_offset(height, valign) +-- some time to vertically align the systray according to the arguments. +function systray:_get_top_offset(height) if not base_size then return 0 end @@ -111,11 +111,11 @@ function systray:_get_top_offset(height, valign) if not valign then return 0 end - + if valign == "top" then return 0 end - + if valign == "center" then return math.floor((height - base_size) / 2) end