mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
Cleanup: remove unsused function clear_dive_site()
The last caller was removed in 11a211fb02
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
28234ec58d
commit
2743e59415
2 changed files with 0 additions and 16 deletions
|
@ -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;
|
||||
|
|
|
@ -68,7 +68,6 @@ bool dive_site_is_empty(struct dive_site *ds);
|
|||
void copy_dive_site_taxonomy(struct dive_site *orig, struct dive_site *copy);
|
||||
void copy_dive_site(struct dive_site *orig, struct dive_site *copy);
|
||||
void merge_dive_site(struct dive_site *a, struct dive_site *b);
|
||||
void clear_dive_site(struct dive_site *ds);
|
||||
unsigned int get_distance(const location_t *loc1, const location_t *loc2);
|
||||
struct dive_site *find_or_create_dive_site_with_name(const char *name, timestamp_t divetime);
|
||||
void merge_dive_sites(struct dive_site *ref, struct dive_site *dive_sites[], int count);
|
||||
|
|
Loading…
Reference in a new issue