summaryrefslogtreecommitdiffstats
path: root/dive.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-02-13 07:14:30 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-02-13 14:27:34 -0800
commit6708e06872b395c5a0d22d4f5cf17f8ec19bdaf3 (patch)
treed335511cc33c4c6c2ad2812e349674bca6e69ad7 /dive.h
parentbe1b6c67c1ec0be77dfa65a1199bf8fc6d6101cf (diff)
downloadsubsurface-6708e06872b395c5a0d22d4f5cf17f8ec19bdaf3.tar.gz
Adapt GPS coordinate download from our companion app to dive sites
This is a bit awkward now. We are downloading what looks like fake dives in the v2 format. So we create a dive site for every single fix. After we merge those new dive sites into the existing dives we need to throw away all the dive sites that weren't used. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.h')
-rw-r--r--dive.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/dive.h b/dive.h
index 9de3423ad..105d5d8c5 100644
--- a/dive.h
+++ b/dive.h
@@ -389,17 +389,6 @@ extern void dive_set_geodata_from_picture(struct dive *d, struct picture *pic);
extern int explicit_first_cylinder(struct dive *dive, struct divecomputer *dc);
-static inline void copy_gps_location(struct dive *from, struct dive *to)
-{
- if (from && to) {
- to->latitude.udeg = from->latitude.udeg;
- to->longitude.udeg = from->longitude.udeg;
- if (!to->location) {
- to->location = strdup(from->location);
- }
- }
-}
-
static inline int get_surface_pressure_in_mbar(const struct dive *dive, bool non_null)
{
int mbar = dive->surface_pressure.mbar;