Cleanup: use add_to_dive_table() in record_dive_to_table()

This was reimplementing functionality that was already there.
Simply call the already existing function.

Thus, we don't have to export the grow_dive_table function.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2019-06-04 21:25:42 +02:00 committed by Dirk Hohndel
parent 3df32044ee
commit d129085b59
3 changed files with 2 additions and 8 deletions

View file

@ -775,7 +775,7 @@ int comp_dives(const struct dive *a, const struct dive *b)
}
/* Dive table functions */
MAKE_GROW_TABLE(dive_table, struct dive *, dives)
static MAKE_GROW_TABLE(dive_table, struct dive *, dives)
MAKE_GET_INSERTION_INDEX(dive_table, struct dive *, dives, dive_less_than)
MAKE_ADD_TO(dive_table, struct dive *, dives)
static MAKE_REMOVE_FROM(dive_table, dives)