From 71fa4361c47e9ed2f3c6521e9273fabb41aadc20 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Fri, 30 Jan 2015 04:11:50 +0000 Subject: Abolish struct tbl_head and replace it by an "int col" member in struct tbl_cell. No functional change, minus 40 lines of code. --- tbl.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'tbl.c') 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 * Copyright (c) 2011, 2015 Ingo Schwarze @@ -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); } -- cgit v1.2.3