diff options
Diffstat (limited to 'core/dive.c')
-rw-r--r-- | core/dive.c | 8 |
1 files changed, 1 insertions, 7 deletions
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 <stdio.h> #include <stdlib.h> #include <limits.h> +#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; |