From d10a8424cbf8e529a1b36287d41f7fe6df353e2f Mon Sep 17 00:00:00 2001 From: Tristan Riehs Date: Tue, 4 Aug 2026 23:38:19 +0200 Subject: Get rid of the non-reloadable version It creates two different versions of the code for no valid reason. dynamically loading the display is not that mystical in the end. --- src/tui.c | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'src/tui.c') diff --git a/src/tui.c b/src/tui.c index 3a82414..09a039b 100644 --- a/src/tui.c +++ b/src/tui.c @@ -83,11 +83,9 @@ tui_read_input(void) { switch(c) { -#ifndef NDEBUG case 'g': case 'r': return DISP_RELOAD; -#endif case 'q': return DISP_QUIT; case '\n': @@ -133,7 +131,6 @@ tui_destroy(void) endwin(); } -#ifndef NDEBUG void * tui_pre_reload(void) { @@ -154,15 +151,3 @@ tui_post_reload(void *state) tui_init(); redraw(); } -#endif - -#ifdef NDEBUG -static struct disp __tui_disp = { - .init = tui_init, - .display_calc = tui_display_calc, - .read_input = tui_read_input, - .display_res = tui_display_res, - .destroy = tui_destroy -}; -struct disp *tui_disp = &__tui_disp; -#endif -- cgit v1.2.3