From: Robert Kessl Date: Fri, 25 Jul 2014 13:13:27 +0000 (+0200) Subject: tableprinter: removal of table_make_instance X-Git-Tag: v6.1~3^2~41 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=876e3e46265dbc1bfc72486f0b5fc6bb12ef74a9;p=libucw.git tableprinter: removal of table_make_instance --- 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);