diff options
author | Jan Mulder <jlmulder@xs4all.nl> | 2017-05-19 21:59:51 +0200 |
---|---|---|
committer | Jan Mulder <jlmulder@xs4all.nl> | 2018-01-10 16:45:42 +0100 |
commit | c69ea1de1b023f3be9003ceb34e5fc1d6684f051 (patch) | |
tree | 2a2c9b52b1d7a700edc59496779f28648a795f9b /core | |
parent | 69b922dc7213a8161cd0c016f47700115f8e16a4 (diff) | |
download | subsurface-c69ea1de1b023f3be9003ceb34e5fc1d6684f051.tar.gz |
Unused code: remove trip_has_selected_dives()
Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
Diffstat (limited to 'core')
-rw-r--r-- | core/divelist.c | 10 | ||||
-rw-r--r-- | core/divelist.h | 1 |
2 files changed, 0 insertions, 11 deletions
diff --git a/core/divelist.c b/core/divelist.c index 87151558a..5549825dc 100644 --- a/core/divelist.c +++ b/core/divelist.c @@ -95,16 +95,6 @@ dive_trip_t *find_trip_by_idx(int idx) return NULL; } -int trip_has_selected_dives(dive_trip_t *trip) -{ - struct dive *dive; - for (dive = trip->dives; dive; dive = dive->next) { - if (dive->selected) - return 1; - } - return 0; -} - /* * Get "maximal" dive gas for a dive. * Rules: diff --git a/core/divelist.h b/core/divelist.h index 538f4215b..84e680ab4 100644 --- a/core/divelist.h +++ b/core/divelist.h @@ -24,7 +24,6 @@ extern char *get_dive_gas_string(struct dive *dive); extern dive_trip_t *find_trip_by_idx(int idx); struct dive **grow_dive_table(struct dive_table *table); -extern int trip_has_selected_dives(dive_trip_t *trip); extern void get_dive_gas(struct dive *dive, int *o2_p, int *he_p, int *o2low_p); extern int get_divenr(struct dive *dive); extern int get_divesite_idx(struct dive_site *ds); |