diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-05-01 13:43:52 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-05-01 09:42:31 -0700 |
commit | 95284c026e763482ef581c8b6298012d2c1fd941 (patch) | |
tree | ae00ee0920b3e31991cb324d256ac0c97a5027fd /core/dive.c | |
parent | c13040798c66c5254fbcc921842cd519da05a4c5 (diff) | |
download | subsurface-95284c026e763482ef581c8b6298012d2c1fd941.tar.gz |
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 <bstoeger@mail.tuwien.ac.at>
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; |