From 876e3e46265dbc1bfc72486f0b5fc6bb12ef74a9 Mon Sep 17 00:00:00 2001 From: Robert Kessl Date: Fri, 25 Jul 2014 15:13:27 +0200 Subject: [PATCH] tableprinter: removal of table_make_instance --- ucw/table.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/ucw/table.c b/ucw/table.c index a13f6e6a..07316136 100644 --- a/ucw/table.c +++ b/ucw/table.c @@ -20,7 +20,7 @@ static void table_update_ll(struct table *tbl); /*** Management of tables ***/ -static struct table *table_make_instance(const struct table_template *tbl_template) +struct table *table_init(const struct table_template *tbl_template) { struct mempool *pool = mp_new(4096); struct table *new_inst = mp_alloc_zero(pool, sizeof(struct table)); @@ -74,15 +74,6 @@ static struct table *table_make_instance(const struct table_template *tbl_templa return new_inst; } -struct table *table_init(const struct table_template *tbl_template) -{ - struct table *tbl = table_make_instance(tbl_template); - // FIXME: What remains of table_init()? Just combine it with table_make_instance() - - - return tbl; -} - void table_cleanup(struct table *tbl) { mp_delete(tbl->pool); -- 2.39.2