aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tbl.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-01-30 04:11:50 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-01-30 04:11:50 +0000
commit71fa4361c47e9ed2f3c6521e9273fabb41aadc20 (patch)
treeac472a0b2793a26633a7405d837eaa7fa648ea74 /tbl.c
parent8ea5dc6d40c942157256ddd510bd3fa16cb44303 (diff)
downloadmandoc-71fa4361c47e9ed2f3c6521e9273fabb41aadc20.tar.gz
mandoc-71fa4361c47e9ed2f3c6521e9273fabb41aadc20.tar.zst
mandoc-71fa4361c47e9ed2f3c6521e9273fabb41aadc20.zip
Abolish struct tbl_head and replace it by an "int col" member in
struct tbl_cell. No functional change, minus 40 lines of code.
Diffstat (limited to 'tbl.c')
-rw-r--r--tbl.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/tbl.c b/tbl.c
index 3a0dfe07..1a84a4a3 100644
--- a/tbl.c
+++ b/tbl.c
@@ -1,4 +1,4 @@
-/* $Id: tbl.c,v 1.37 2015/01/30 02:09:04 schwarze Exp $ */
+/* $Id: tbl.c,v 1.38 2015/01/30 04:11:50 schwarze Exp $ */
/*
* Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2011, 2015 Ingo Schwarze <schwarze@openbsd.org>
@@ -108,7 +108,6 @@ tbl_free(struct tbl_node *tbl)
struct tbl_cell *cp;
struct tbl_span *sp;
struct tbl_dat *dp;
- struct tbl_head *hp;
while ((rp = tbl->first_row) != NULL) {
tbl->first_row = rp->next;
@@ -131,11 +130,6 @@ tbl_free(struct tbl_node *tbl)
free(sp);
}
- while ((hp = tbl->first_head) != NULL) {
- tbl->first_head = hp->next;
- free(hp);
- }
-
free(tbl);
}