summaryrefslogtreecommitdiffstats
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
commit37b1fa2022515dadb78d40e740849dfc6bd68996 (patch)
tree12ce733b8e92a238d28dd6d17b90b0e65aae6690 /tbl.c
parentbba48934f08def48237c6f8c8f3f11d6e6d61944 (diff)
downloadmandoc-37b1fa2022515dadb78d40e740849dfc6bd68996.tar.gz
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.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/tbl.c b/tbl.c
index b596dd1f..1a9f01a5 100644
--- a/tbl.c
+++ b/tbl.c
@@ -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);
}