053c7705f337927c242290eeae6262ab597c999b — Zandr Martin 2 months ago 62a6d89
remove unnecessary `closed` variable in parse_list

This local variable was initialized to `false` and never set to true
anywhere in the function.
1 files changed, 2 insertions(+), 8 deletions(-)

M src/main.c
M src/main.c => src/main.c +2 -8
@@ 333,7 333,6 @@ }
  	list_header(p, &num);
  	parse_text(p);
- 	bool closed = false;
  	do {
  		parse_indent(p, indent, true);
  		if ((ch = parser_getch(p)) == UTF8_INVALID) {


@@ 351,12 350,9 @@ if ((ch = parser_getch(p)) != ' ') {
  				parser_fatal(p, "Expected space before start of list entry");
  			}
- 			if (!closed) {
- 				roff_macro(p, "RE", NULL);
- 			}
+ 			roff_macro(p, "RE", NULL);
  			list_header(p, &num);
  			parse_text(p);
- 			closed = false;
  			break;
  		default:
  			fprintf(p->output, "\n");


@@ 365,9 361,7 @@ }
  	} while (ch != UTF8_INVALID);
  ret:
- 	if (!closed) {
- 		roff_macro(p, "RE", NULL);
- 	}
+ 	roff_macro(p, "RE", NULL);
  }
  
  static void parse_literal(struct parser *p, int *indent) {