diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2018-12-31 04:55:46 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2018-12-31 04:55:46 +0000 |
commit | c0cea6817b9d23d8e5e4a752fc1dff8dfb604cdc (patch) | |
tree | 8583999131b10c7f020825880396b50813e04620 /mdoc_state.c | |
parent | 0cd2663fe9e76ba0ad357a566dc3416eccab70e5 (diff) | |
download | mandoc-c0cea6817b9d23d8e5e4a752fc1dff8dfb604cdc.tar.gz |
Cleanup, minus 15 LOC, no functional change:
Simplify the way the man(7) and mdoc(7) validators are called.
Reset the parser state with a common function before calling them.
There is no need to again reset the parser state afterwards,
the parsers are no longer used after validation.
This allows getting rid of man_node_validate() and mdoc_node_validate()
as separate functions.
Diffstat (limited to 'mdoc_state.c')
-rw-r--r-- | mdoc_state.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/mdoc_state.c b/mdoc_state.c index df9fca75..78ce3bcd 100644 --- a/mdoc_state.c +++ b/mdoc_state.c @@ -179,14 +179,6 @@ mdoc_state(struct roff_man *mdoc, struct roff_node *n) (*handler)(mdoc, n); } -void -mdoc_state_reset(struct roff_man *mdoc) -{ - - roff_setreg(mdoc->roff, "nS", 0, '='); - mdoc->flags = 0; -} - static void state_bd(STATE_ARGS) { |