diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-02-04 22:16:44 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-02-09 10:36:01 -0800 |
commit | 2743e59415f81522f4b0ce9bb2b25243c6ef18e6 (patch) | |
tree | 26dbdf14d17c615a049c4dc3b3a17fa62c6ab36b /core/divesite.c | |
parent | 28234ec58dacc9a9a5bf2966319346b277ff9199 (diff) | |
download | subsurface-2743e59415f81522f4b0ce9bb2b25243c6ef18e6.tar.gz |
Cleanup: remove unsused function clear_dive_site()
The last caller was removed in 11a211fb02ad5443342d91b6967f150cb4f6d34f
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/divesite.c')
-rw-r--r-- | core/divesite.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/core/divesite.c b/core/divesite.c index f81d6abf6..25ec82ef3 100644 --- a/core/divesite.c +++ b/core/divesite.c @@ -281,21 +281,6 @@ void merge_dive_site(struct dive_site *a, struct dive_site *b) } } -void clear_dive_site(struct dive_site *ds) -{ - free(ds->name); - free(ds->notes); - free(ds->description); - ds->name = NULL; - ds->notes = NULL; - ds->description = NULL; - ds->location.lat.udeg = 0; - ds->location.lon.udeg = 0; - ds->uuid = 0; - ds->taxonomy.nr = 0; - free_taxonomy(&ds->taxonomy); -} - void merge_dive_sites(struct dive_site *ref, struct dive_site *dive_sites[], int count) { int curr_dive, i; |