Commit 153dea17 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

tweaks: discard another set of useless asserts

No related merge requests found
Showing with 0 additions and 7 deletions
+0 -7
......@@ -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. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment