From 153dea1732f5d94ca09994632c6ac3edffd27a3b Mon Sep 17 00:00:00 2001 From: Benno Schulenberg <bensberg@telfort.nl> Date: Tue, 12 Sep 2017 21:52:36 +0200 Subject: [PATCH] tweaks: discard another set of useless asserts --- src/winio.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/winio.c b/src/winio.c index 27629302..b2e5bab9 100644 --- a/src/winio.c +++ b/src/winio.c @@ -2018,8 +2018,6 @@ void titlebar(const char *path) if (topwin == NULL) return; - assert(path != NULL || openfile->filename != NULL); - wattron(topwin, interface_color_pair[TITLE_BAR]); blank_titlebar(); @@ -2292,8 +2290,6 @@ void bottombars(int menu) * the whole string! We do not bother padding the entry with blanks. */ void onekey(const char *keystroke, const char *desc, int length) { - assert(keystroke != NULL && desc != NULL); - wattron(bottomwin, interface_color_pair[KEY_COMBO]); waddnstr(bottomwin, keystroke, actual_x(keystroke, length)); wattroff(bottomwin, interface_color_pair[KEY_COMBO]); @@ -2365,9 +2361,6 @@ void edit_draw(filestruct *fileptr, const char *converted, * might be beyond the null terminator of the string. */ #endif - assert(openfile != NULL && fileptr != NULL && converted != NULL); - assert(strlenpt(converted) <= editwincols); - #ifdef ENABLE_LINENUMBERS /* If line numbering is switched on, put a line number in front of * the text -- but only for the parts that are not softwrapped. */ -- GitLab