From 95284c026e763482ef581c8b6298012d2c1fd941 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Fri, 1 May 2020 13:43:52 +0200 Subject: cleanup: move dive_table from dive.h to divelist.h This allows us to decouple dive.h and divelist.h, a small step in include disentangling. Signed-off-by: Berthold Stoeger --- core/dive.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'core/dive.c') diff --git a/core/dive.c b/core/dive.c index c95bc6a95..2073099e2 100644 --- a/core/dive.c +++ b/core/dive.c @@ -5,6 +5,7 @@ #include #include #include +#include "dive.h" #include "gettext.h" #include "subsurface-string.h" #include "libdivecomputer.h" @@ -3921,13 +3922,6 @@ struct dive *get_dive(int nr) return dive_table.dives[nr]; } -struct dive *get_dive_from_table(int nr, const struct dive_table *dt) -{ - if (nr >= dt->nr || nr < 0) - return NULL; - return dt->dives[nr]; -} - struct dive_site *get_dive_site_for_dive(const struct dive *dive) { return dive->dive_site; -- cgit v1.2.3-70-g09d2