=================================================================== RCS file: /cvs/mandoc/man.c,v retrieving revision 1.184 retrieving revision 1.186 diff -u -p -r1.184 -r1.186 --- mandoc/man.c 2018/12/31 07:08:12 1.184 +++ mandoc/man.c 2018/12/31 10:04:39 1.186 @@ -1,4 +1,4 @@ -/* $Id: man.c,v 1.184 2018/12/31 07:08:12 schwarze Exp $ */ +/* $Id: man.c,v 1.186 2018/12/31 10:04:39 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2013,2014,2015,2017,2018 Ingo Schwarze @@ -342,28 +342,4 @@ man_breakscope(struct roff_man *man, int tok) roff_node_delete(man, n); man->flags &= ~MAN_BLINE; } -} - -void -man_state(struct roff_man *man, struct roff_node *n) -{ - - switch(n->tok) { - case ROFF_nf: - case MAN_EX: - if (man->flags & ROFF_NOFILL && (n->flags & NODE_VALID) == 0) - mandoc_msg(MANDOCERR_NF_SKIP, n->line, n->pos, "nf"); - man->flags |= ROFF_NOFILL; - break; - case ROFF_fi: - case MAN_EE: - if ( (man->flags & ROFF_NOFILL) == 0 && - ! (n->flags & NODE_VALID)) - mandoc_msg(MANDOCERR_FI_SKIP, n->line, n->pos, "fi"); - man->flags &= ~ROFF_NOFILL; - break; - default: - break; - } - man->last->flags |= NODE_VALID; }