diff options
Diffstat (limited to 'mdoc_state.c')
-rw-r--r-- | mdoc_state.c | 41 |
1 files changed, 2 insertions, 39 deletions
diff --git a/mdoc_state.c b/mdoc_state.c index 67b88aa4..9613ce48 100644 --- a/mdoc_state.c +++ b/mdoc_state.c @@ -32,9 +32,7 @@ typedef void (*state_handler)(STATE_ARGS); -static void state_bd(STATE_ARGS); static void state_bl(STATE_ARGS); -static void state_dl(STATE_ARGS); static void state_sh(STATE_ARGS); static void state_sm(STATE_ARGS); @@ -46,8 +44,8 @@ static const state_handler state_handlers[MDOC_MAX - MDOC_Dd] = { NULL, /* Ss */ NULL, /* Pp */ NULL, /* D1 */ - state_dl, /* Dl */ - state_bd, /* Bd */ + NULL, /* Dl */ + NULL, /* Bd */ NULL, /* Ed */ state_bl, /* Bl */ NULL, /* El */ @@ -180,25 +178,6 @@ mdoc_state(struct roff_man *mdoc, struct roff_node *n) } static void -state_bd(STATE_ARGS) -{ - enum mdocargt arg; - - if (n->type != ROFFT_HEAD && - (n->type != ROFFT_BODY || n->end != ENDBODY_NOT)) - return; - - if (n->parent->args == NULL) - return; - - arg = n->parent->args->argv[0].arg; - if (arg != MDOC_Literal && arg != MDOC_Unfilled) - return; - - state_dl(mdoc, n); -} - -static void state_bl(STATE_ARGS) { struct mdoc_arg *args; @@ -223,22 +202,6 @@ state_bl(STATE_ARGS) } static void -state_dl(STATE_ARGS) -{ - - switch (n->type) { - case ROFFT_HEAD: - mdoc->flags |= ROFF_NOFILL; - break; - case ROFFT_BODY: - mdoc->flags &= ~ROFF_NOFILL; - break; - default: - break; - } -} - -static void state_sh(STATE_ARGS) { struct roff_node *nch; |