Remove function mdb_alloc_catalog

This commit is contained in:
whydoubt
2004-09-03 04:05:25 +00:00
parent c5e11e5445
commit d2208db027
4 changed files with 6 additions and 7 deletions

View File

@@ -47,10 +47,6 @@ static char *type_name[] = {"Form",
}
}
void mdb_alloc_catalog(MdbHandle *mdb)
{
mdb->catalog = g_ptr_array_new();
}
void mdb_free_catalog(MdbHandle *mdb)
{
unsigned int i;
@@ -72,7 +68,7 @@ GPtrArray *mdb_read_catalog (MdbHandle *mdb, int objtype)
int type;
if (mdb->catalog) mdb_free_catalog(mdb);
mdb_alloc_catalog(mdb);
mdb->catalog = g_ptr_array_new();
mdb->num_catalog = 0;
/* dummy up a catalog entry so we may read the table def */