Skip to content

Commit

Permalink
Remove unused styles.
Browse files Browse the repository at this point in the history
  • Loading branch information
kristapsdz committed Dec 22, 2024
1 parent 13bb8a9 commit bd923a0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
15 changes: 0 additions & 15 deletions term.c
Original file line number Diff line number Diff line change
Expand Up @@ -582,21 +582,6 @@ rndr_buf_startline_prefixes(struct term *term,

emit = term->stack[i].lines++;

/*
* If we're below the document root and not a header, that means
* we're in a body part. Emit the general body indentation.
*/

if (*depth == 0 && n->type != LOWDOWN_HEADER) {
if (!hbuf_puts(out, pfx_body.text))
return 0;
rndr_buf_advance(term, pfx_body.cols);
} else if (*depth == 0) {
if (!hbuf_puts(out, pfx_header.text))
return 0;
rndr_buf_advance(term, pfx_header.cols);
}

/*
* Output any prefixes.
* Any output must have rndr_buf_style() and set pstyle so that
Expand Down
6 changes: 0 additions & 6 deletions term.h
Original file line number Diff line number Diff line change
Expand Up @@ -163,12 +163,6 @@ static const struct sty sty_tbl = { 0, 0, 0, 0, 0, 93, 0 };
* least 4 spaces would be printed, even if it were "1. " -> " 1. ".
*/

/* All non-header (child to the document root) content (no style). */
static const struct pfx pfx_body = { "", 0 };

/* All header (child to the document root) content (no style). */
static const struct pfx pfx_header = { "", 0 };

/* Block code (see sty_bkcd_pfx). */
static const struct pfx pfx_bkcd = { " │ ", 4 };

Expand Down

0 comments on commit bd923a0

Please sign in to comment.