]> mj.ucw.cz Git - libucw.git/commitdiff
tableprinter: removal of table_make_instance
authorRobert Kessl <kesslr@centrum.cz>
Fri, 25 Jul 2014 13:13:27 +0000 (15:13 +0200)
committerRobert Kessl <kesslr@centrum.cz>
Fri, 25 Jul 2014 13:13:27 +0000 (15:13 +0200)
ucw/table.c

index a13f6e6a667fc2cbce435cc87cc475a86b43909b..073161365232bbb4fb12a850b21c1aa7e9f39aaa 100644 (file)
@@ -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);