From d129085b59df6e84f0415c347e8425c13b5ca868 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Tue, 4 Jun 2019 21:25:42 +0200 Subject: 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 --- core/divelist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/divelist.c') diff --git a/core/divelist.c b/core/divelist.c index af253fb4e..62e79ac59 100644 --- a/core/divelist.c +++ b/core/divelist.c @@ -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) -- cgit v1.2.3-70-g09d2