summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);
};