commit 153dea1732f5d94ca09994632c6ac3edffd27a3b
parent bb8d65e89c94e06192472fed2d4ac03a1124470b
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Tue, 12 Sep 2017 21:52:36 +0200
tweaks: discard another set of useless asserts
Diffstat:
1 file changed, 0 insertions(+), 7 deletions(-)
diff --git 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. */