summaryrefslogtreecommitdiffstats
path: root/tree.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-02-05 00:14:13 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-02-05 00:14:13 +0000
commit4514bbe8133f9b6a03f35d9c4321d64e48e6cf33 (patch)
tree0e6b28410e8f7299f337233500090d8976d57375 /tree.c
parent9428c0388cfeb9544f5ffec7200f5fbee7da4727 (diff)
downloadmandoc-4514bbe8133f9b6a03f35d9c4321d64e48e6cf33.tar.gz
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 'tree.c')
-rw-r--r--tree.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/tree.c b/tree.c
index 3afb86ff..af479d5a 100644
--- a/tree.c
+++ b/tree.c
@@ -162,10 +162,7 @@ print_mdoc(const struct mdoc_node *n, int indent)
putchar(' ');
if (MDOC_LINE & n->flags)
putchar('*');
- printf("%d:%d", n->line, n->pos + 1);
- if (n->lastline != n->line)
- printf("-%d", n->lastline);
- putchar('\n');
+ printf("%d:%d\n", n->line, n->pos + 1);
}
if (n->eqn)