mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Cleanup: remove unused function create_dive_site_from_current_dive()
The last caller was removed in 11a211fb02
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
62fc8b0429
commit
28234ec58d
2 changed files with 0 additions and 14 deletions
|
@ -214,19 +214,6 @@ struct dive_site *create_dive_site(const char *name, timestamp_t divetime)
|
|||
return ds;
|
||||
}
|
||||
|
||||
/* same as before, but with current time if no current_dive is present */
|
||||
struct dive_site *create_dive_site_from_current_dive(const char *name)
|
||||
{
|
||||
if (current_dive != NULL) {
|
||||
return create_dive_site(name, current_dive->when);
|
||||
} else {
|
||||
timestamp_t when;
|
||||
time_t now = time(0);
|
||||
when = utc_mktime(localtime(&now));
|
||||
return create_dive_site(name, when);
|
||||
}
|
||||
}
|
||||
|
||||
/* same as before, but with GPS data */
|
||||
struct dive_site *create_dive_site_with_gps(const char *name, const location_t *loc, timestamp_t divetime)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue