mobile: remove locationService interfaces

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2021-09-11 16:53:44 -07:00
parent 7bf90fd208
commit 5bc99194da
3 changed files with 1 additions and 28 deletions

View file

@ -201,7 +201,7 @@ static bool unsavedChanges()
return unsaved_changes() || !Command::isClean();
}
QMLManager::QMLManager() : m_locationServiceEnabled(false),
QMLManager::QMLManager() :
m_verboseEnabled(false),
m_diveListProcessing(false),
m_initialized(false),
@ -1639,20 +1639,6 @@ void QMLManager::appendTextToLog(const QString &newText)
qDebug() << QString::number(timer.elapsed() / 1000.0,'f', 3) + ": " + newText;
}
void QMLManager::setLocationServiceEnabled(bool locationServiceEnabled)
{
m_locationServiceEnabled = locationServiceEnabled;
GpsLocation::instance()->serviceEnable(m_locationServiceEnabled);
emit locationServiceEnabledChanged();
}
void QMLManager::setLocationServiceAvailable(bool locationServiceAvailable)
{
appendTextToLog(QStringLiteral("location service is ") + (locationServiceAvailable ? QStringLiteral("available") : QStringLiteral("not available")));
m_locationServiceAvailable = locationServiceAvailable;
emit locationServiceAvailableChanged();
}
void QMLManager::setVerboseEnabled(bool verboseMode)
{
m_verboseEnabled = verboseMode;