tweaks: remove a superfluous check for a special case

The case is handled fine by the rest of the code.  The unnecessary
check wastes some cycles for every call of find_paragraph().
master
Benno Schulenberg 2018-11-25 12:43:29 +01:00
parent 4a70c1393f
commit 5f5682240a
1 changed files with 0 additions and 5 deletions

View File

@ -2045,11 +2045,6 @@ bool find_paragraph(filestruct **firstline, bool *bot_inpar,
return FALSE;
}
/* When at the end of the buffer and not in a paragraph, there aren't
* any paragraphs left, so get out. */
if (line->next == NULL && !inpar(line))
return FALSE;
/* If the current line isn't in a paragraph, move forward to the
* last line of the next paragraph, if any. */
if (!inpar(line)) {