From b9a07191175217ea803bab7b38328bd53eca7925 Mon Sep 17 00:00:00 2001 From: Max Date: Mon, 6 Nov 2023 02:16:43 +0100 Subject: remove unnecessary set of sidebar width When the function is called, `col` is zero, which leads to setting the sidebar width (in percent) to zero. As the variable holding the percentage is `static unsigned sbarwidth_perc` it is initialized to zero anyway and we set the percentage later to the value loaded from the configuration, too. Signed-off-by: Max Signed-off-by: Lukas Fleischer --- src/vars.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src') diff --git a/src/vars.c b/src/vars.c index 97a129a..c8508e2 100644 --- a/src/vars.c +++ b/src/vars.c @@ -175,8 +175,6 @@ void vars_init(void) ui_calendar_set_first_day_of_week(MONDAY); - wins_set_sbar_width(col * SBARMINWIDTH / 100); - /* Pad structure to scroll text inside the appointment panel */ apad.length = 1; apad.first_onscreen = 0; -- cgit v1.2.3-70-g09d2