diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2015-02-05 00:14:13 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2015-02-05 00:14:13 +0000 |
commit | 4f91009f8aa8fa191505ff44484c023b578795b2 (patch) | |
tree | a8e0ab19e43df333dfe231ace1509c193ae68a95 /mdoc_macro.c | |
parent | aff7055e2d69b65767cc1314a7898f31abe2c74a (diff) | |
download | mandoc-4f91009f8aa8fa191505ff44484c023b578795b2.tar.gz mandoc-4f91009f8aa8fa191505ff44484c023b578795b2.tar.zst mandoc-4f91009f8aa8fa191505ff44484c023b578795b2.zip |
Simplify by deleting the "lastline" member of struct mdoc_node.
Minus one struct member, minus 17 lines of code, no functional change.
Diffstat (limited to 'mdoc_macro.c')
-rw-r--r-- | mdoc_macro.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/mdoc_macro.c b/mdoc_macro.c index c6b0f352..86edb030 100644 --- a/mdoc_macro.c +++ b/mdoc_macro.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_macro.c,v 1.174 2015/02/04 22:30:10 schwarze Exp $ */ +/* $Id: mdoc_macro.c,v 1.175 2015/02/05 00:14:13 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010, 2012-2015 Ingo Schwarze <schwarze@openbsd.org> @@ -262,9 +262,6 @@ rew_last(struct mdoc *mdoc, const struct mdoc_node *to) assert(to); mdoc->next = MDOC_NEXT_SIBLING; while (mdoc->last != to) { - if ( ! (mdoc->last->flags & MDOC_VALID)) - mdoc->last->lastline = to->lastline - - (mdoc->flags & MDOC_NEWLINE ? 1 : 0); /* * Save the parent here, because we may delete the * mdoc->last node in the post-validation phase and reset @@ -578,10 +575,8 @@ blk_exp_close(MACRO_PROT_ARGS) /* Remember the start of our own body. */ if (n->type == MDOC_BODY && atok == n->tok) { - if (n->end == ENDBODY_NOT) { + if (n->end == ENDBODY_NOT) body = n; - n->lastline = line; - } continue; } @@ -594,7 +589,6 @@ blk_exp_close(MACRO_PROT_ARGS) } if (atok == n->tok) { - n->lastline = line; assert(body); /* |