From bea552bf0d69e73be9a223369c72bcc122ddff08 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 11 Sep 2021 14:41:09 -0700 Subject: mobile: remove GpsListModel This is only needed to show the list of GPS fixes obtained with the now removed location service. Signed-off-by: Dirk Hohndel --- mobile-widgets/qmlmanager.cpp | 9 --------- mobile-widgets/qmlmanager.h | 1 - 2 files changed, 10 deletions(-) (limited to 'mobile-widgets') diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp index ee70679d5..31bf438d8 100644 --- a/mobile-widgets/qmlmanager.cpp +++ b/mobile-widgets/qmlmanager.cpp @@ -20,7 +20,6 @@ #include -#include "qt-models/gpslistmodel.h" #include "qt-models/completionmodels.h" #include "qt-models/messagehandlermodel.h" #include "qt-models/tankinfomodel.h" @@ -1684,22 +1683,14 @@ void QMLManager::applyGpsData() changesNeedSaving(); } -void QMLManager::populateGpsData() -{ - if (GpsListModel::instance()) - GpsListModel::instance()->update(); -} - void QMLManager::clearGpsData() { GpsLocation::instance()->clearGpsData(); - populateGpsData(); } void QMLManager::deleteGpsFix(quint64 when) { GpsLocation::instance()->deleteGpsFix(when); - populateGpsData(); } QString QMLManager::logText() const diff --git a/mobile-widgets/qmlmanager.h b/mobile-widgets/qmlmanager.h index f20856a8e..0f2db2e7a 100644 --- a/mobile-widgets/qmlmanager.h +++ b/mobile-widgets/qmlmanager.h @@ -214,7 +214,6 @@ public slots: void redo(); int addDive(); void applyGpsData(); - void populateGpsData(); void cancelDownloadDC(); void clearGpsData(); QString getCombinedLogs(); -- cgit v1.2.3-70-g09d2