diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-02-26 21:14:48 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-02-28 07:27:10 -0800 |
commit | 3c2dd7f7c6144a9b586269fcae35fe58a38f037d (patch) | |
tree | fd0c9430625d6b314a69c5170b0b2de3e9df956d /core/divelist.c | |
parent | 9c87c0dafd5d9946261787bcbb2e6311b5e5f444 (diff) | |
download | subsurface-3c2dd7f7c6144a9b586269fcae35fe58a38f037d.tar.gz |
Cleanup: move get_divesite_idx() to divesite.c
This function was defined in divelist.c, whereas it's better located
in divesite.c. Move it.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/divelist.c')
-rw-r--r-- | core/divelist.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/core/divelist.c b/core/divelist.c index a1e6c08bc..6a8f78f0f 100644 --- a/core/divelist.c +++ b/core/divelist.c @@ -512,19 +512,6 @@ int get_divenr(const struct dive *dive) return -1; } -int get_divesite_idx(const struct dive_site *ds) -{ - int i; - const struct dive_site *d; - // tempting as it may be, don't die when called with dive=NULL - if (ds) - for_each_dive_site(i, d) { - if (d->uuid == ds->uuid) // don't compare pointers, we could be passing in a copy of the dive - return i; - } - return -1; -} - static struct gasmix air = { .o2.permille = O2_IN_AIR, .he.permille = 0 }; /* take into account previous dives until there is a 48h gap between dives */ |