From 0bb1a82127cd2510a8339ab4a23a42bb06e64590 Mon Sep 17 00:00:00 2001 From: Jan Mulder Date: Sat, 20 May 2017 22:03:09 +0200 Subject: GpsLocation::clearGpsData() is only used in SUBSURFACE_MOBILE Signed-off-by: Jan Mulder --- core/gpslocation.cpp | 2 ++ core/gpslocation.h | 2 ++ 2 files changed, 4 insertions(+) (limited to 'core') 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); }; -- cgit v1.2.3-70-g09d2