summaryrefslogtreecommitdiffstats
path: root/core/divesite.c
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-02-04 21:59:43 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-02-09 10:36:01 -0800
commit28234ec58dacc9a9a5bf2966319346b277ff9199 (patch)
tree37b9ab77a24c733454c75fd79a077a6c2450bd88 /core/divesite.c
parent62fc8b0429e2e45f6eb0bf7fd28221e2c78e4f30 (diff)
downloadsubsurface-28234ec58dacc9a9a5bf2966319346b277ff9199.tar.gz
Cleanup: remove unused function create_dive_site_from_current_dive()
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.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/core/divesite.c b/core/divesite.c
index 376321189..f81d6abf6 100644
--- a/core/divesite.c
+++ b/core/divesite.c
@@ -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)
{