tweaks: discard another set of useless asserts

master
Benno Schulenberg 2017-09-12 21:52:36 +02:00
parent bb8d65e89c
commit 153dea1732
1 changed files with 0 additions and 7 deletions

View File

@ -2018,8 +2018,6 @@ void titlebar(const char *path)
if (topwin == NULL) if (topwin == NULL)
return; return;
assert(path != NULL || openfile->filename != NULL);
wattron(topwin, interface_color_pair[TITLE_BAR]); wattron(topwin, interface_color_pair[TITLE_BAR]);
blank_titlebar(); blank_titlebar();
@ -2292,8 +2290,6 @@ void bottombars(int menu)
* the whole string! We do not bother padding the entry with blanks. */ * the whole string! We do not bother padding the entry with blanks. */
void onekey(const char *keystroke, const char *desc, int length) void onekey(const char *keystroke, const char *desc, int length)
{ {
assert(keystroke != NULL && desc != NULL);
wattron(bottomwin, interface_color_pair[KEY_COMBO]); wattron(bottomwin, interface_color_pair[KEY_COMBO]);
waddnstr(bottomwin, keystroke, actual_x(keystroke, length)); waddnstr(bottomwin, keystroke, actual_x(keystroke, length));
wattroff(bottomwin, interface_color_pair[KEY_COMBO]); 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. */ * might be beyond the null terminator of the string. */
#endif #endif
assert(openfile != NULL && fileptr != NULL && converted != NULL);
assert(strlenpt(converted) <= editwincols);
#ifdef ENABLE_LINENUMBERS #ifdef ENABLE_LINENUMBERS
/* If line numbering is switched on, put a line number in front of /* If line numbering is switched on, put a line number in front of
* the text -- but only for the parts that are not softwrapped. */ * the text -- but only for the parts that are not softwrapped. */