aboutsummaryrefslogtreecommitdiffstats
path: root/core/divesite.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-09-21 13:41:45 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-09-21 16:07:24 -0700
commit9c48130d3717ca7e569bcf36fe753c90cc9dc3ea (patch)
treef5f6066c1d47ae65dba1743ad435e2b24e6fdb07 /core/divesite.h
parente46e018e215539025ed6fa975e100486cc419506 (diff)
downloadsubsurface-9c48130d3717ca7e569bcf36fe753c90cc9dc3ea.tar.gz
Cleanup: replace is_dive_site_used() by is_dive_site_selected()
is_dive_site_used() had a "selected" parameter. If true it would return whether the given dive site had a selected dive. Turns out all callers had this parameter set to true. Therefore, replace by a simplified function without the "selected" parameter and give the function an appropriate name. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/divesite.h')
-rw-r--r--core/divesite.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/divesite.h b/core/divesite.h
index 433ad056e..2dc64f81e 100644
--- a/core/divesite.h
+++ b/core/divesite.h
@@ -51,7 +51,7 @@ int add_dive_site_to_table(struct dive_site *ds, struct dive_site_table *ds_tabl
struct dive_site *alloc_or_get_dive_site(uint32_t uuid, struct dive_site_table *ds_table);
struct dive_site *alloc_dive_site();
int nr_of_dives_at_dive_site(struct dive_site *ds);
-bool is_dive_site_used(struct dive_site *ds, bool select_only);
+bool is_dive_site_selected(struct dive_site *ds);
void free_dive_site(struct dive_site *ds);
int unregister_dive_site(struct dive_site *ds);
int register_dive_site(struct dive_site *ds);