From 4f91009f8aa8fa191505ff44484c023b578795b2 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Thu, 5 Feb 2015 00:14:13 +0000 Subject: Simplify by deleting the "lastline" member of struct mdoc_node. Minus one struct member, minus 17 lines of code, no functional change. --- tree.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'tree.c') diff --git a/tree.c b/tree.c index 43934bbf..a5a7f2c7 100644 --- a/tree.c +++ b/tree.c @@ -1,4 +1,4 @@ -/* $Id: tree.c,v 1.61 2015/02/03 18:37:59 schwarze Exp $ */ +/* $Id: tree.c,v 1.62 2015/02/05 00:14:13 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2011, 2014 Kristaps Dzonsons * Copyright (c) 2013, 2014, 2015 Ingo Schwarze @@ -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) -- cgit v1.2.3