From 2802d4296960eb6ad76292baa105075c5427ea67 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sat, 24 Nov 2018 10:01:03 +0100 Subject: Cleanup: Make add_dive_to_table local to divelist.c This function was not used outside of divelist.c, therefore make it local. Moreover rename it to add_to_divetable so that the name is generic and can be generated by a macro. Moreover, remove the special case idx = -1, which would determine the insertion index. Instead let the single caller who used this feature do this. Signed-off-by: Berthold Stoeger --- core/divelist.h | 1 - 1 file changed, 1 deletion(-) (limited to 'core/divelist.h') diff --git a/core/divelist.h b/core/divelist.h index 620de42d8..aca2ed21e 100644 --- a/core/divelist.h +++ b/core/divelist.h @@ -23,7 +23,6 @@ extern char *get_dive_gas_string(const struct dive *dive); extern struct dive **grow_dive_table(struct dive_table *table); extern int dive_get_insertion_index(struct dive_table *table, struct dive *dive); -extern void add_dive_to_table(struct dive_table *table, int idx, struct dive *dive); extern void add_single_dive(int idx, struct dive *dive); extern void get_dive_gas(const struct dive *dive, int *o2_p, int *he_p, int *o2low_p); extern int get_divenr(const struct dive *dive); -- cgit v1.2.3-70-g09d2