summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorGravatar Jan Mulder <jlmulder@xs4all.nl>2017-05-20 22:03:09 +0200
committerGravatar Jan Mulder <jlmulder@xs4all.nl>2018-01-10 16:45:42 +0100
commit0bb1a82127cd2510a8339ab4a23a42bb06e64590 (patch)
treedc80b8b0f7a4e692b8a236dbb0b114dc39fd0bea /core
parent53221ffd8e5f70ef82b6cd01d54a51a5bf194c8d (diff)
downloadsubsurface-0bb1a82127cd2510a8339ab4a23a42bb06e64590.tar.gz
GpsLocation::clearGpsData() is only used in SUBSURFACE_MOBILE
Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
Diffstat (limited to 'core')
-rw-r--r--core/gpslocation.cpp2
-rw-r--r--core/gpslocation.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/core/gpslocation.cpp b/core/gpslocation.cpp
index ccf183adc..95b2bebbc 100644
--- a/core/gpslocation.cpp
+++ b/core/gpslocation.cpp
@@ -446,12 +446,14 @@ void GpsLocation::deleteGpsFix(qint64 when)
m_deletedTrackers.append(deletedTracker);
}
+#ifdef SUBSURFACE_MOBILE
void GpsLocation::clearGpsData()
{
m_trackers.clear();
geoSettings->clear();
geoSettings->sync();
}
+#endif
void GpsLocation::postError(QNetworkReply::NetworkError error)
{
diff --git a/core/gpslocation.h b/core/gpslocation.h
index efb1b34df..4d48acd59 100644
--- a/core/gpslocation.h
+++ b/core/gpslocation.h
@@ -69,7 +69,9 @@ public slots:
void downloadFromServer();
void postError(QNetworkReply::NetworkError error);
void getUseridError(QNetworkReply::NetworkError error);
+#ifdef SUBSURFACE_MOBILE
void clearGpsData();
+#endif
void deleteGpsFix(qint64 when);
};