tweaks: remove a bit of redundant code

When an included file has just been fully parsed, 'lastcolor' is still
pointing at the last color regex that was added to the list -- no need
to refind the end of this list.
master
Benno Schulenberg 2019-06-03 14:21:17 +02:00
parent ea1016efdb
commit 7f3ffe8544
1 changed files with 0 additions and 5 deletions

View File

@ -578,11 +578,6 @@ void parse_one_include(char *file, syntaxtype *syntax)
parse_rcfile(rcstream, TRUE, FALSE); parse_rcfile(rcstream, TRUE, FALSE);
opensyntax = TRUE; opensyntax = TRUE;
lastcolor = syntax->color;
if (lastcolor != NULL)
while (lastcolor->next != NULL)
lastcolor = lastcolor->next;
extra = syntax->augmentations; extra = syntax->augmentations;
/* Apply any stored extendsyntax commands. */ /* Apply any stored extendsyntax commands. */