From e4670f1b269a84d7cc2b9cdab40305a602ef4519 Mon Sep 17 00:00:00 2001 From: PoliEcho Date: Wed, 12 Mar 2025 15:04:11 +0100 Subject: [PATCH] remove unnessery comments --- src/timetable.cpp | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/timetable.cpp b/src/timetable.cpp index 1868596..d07d1bf 100644 --- a/src/timetable.cpp +++ b/src/timetable.cpp @@ -171,7 +171,6 @@ void timetable_page() { init_pair(i, i, COLOR_BLACK); } - // will cause division by zero after access token refresh. for some reason const uint16_t cell_width = (COLS - BOTTOM_PADDING) / num_of_columns; const uint16_t cell_height = (LINES - BOTTOM_PADDING) / num_of_days; @@ -252,14 +251,12 @@ void timetable_page() { int ch; while ((ch = getch()) != KEY_F(1)) { if (is_info_box_open) { - // Hide and delete panel first + hide_panel(infobox_panel); del_panel(infobox_panel); - - // Delete the window + delwin(infobox_window); - // Force full screen redraw touchwin(stdscr); refresh(); @@ -268,13 +265,10 @@ void timetable_page() { draw_lessons(lesson_windows, num_of_columns, cell_width, HourIdLookupTable, resp_from_api); draw_cells(num_of_columns, num_of_days, cell_width, cell_height, cells, HourIdLookupTable, resp_from_api); - - // Restore selection indicators + for (uint8_t i = 0; i < selector_panels.size(); i++) { top_panel(selector_panels[i]); } - - // Update panels and screen update_panels(); doupdate();