diff --git a/src/QGCApplication.cc b/src/QGCApplication.cc index 921bc20bef1..77c8b8325ec 100644 --- a/src/QGCApplication.cc +++ b/src/QGCApplication.cc @@ -825,7 +825,6 @@ bool QGCApplication::isInternetAvailable() void QGCApplication::_checkForNewVersion() { -#ifndef __mobile__ if (!_runningUnitTests) { if (_parseVersionText(applicationVersion(), _majorVersion, _minorVersion, _buildVersion)) { QString versionCheckFile = toolbox()->corePlugin()->stableVersionCheckFileUrl(); @@ -836,15 +835,10 @@ void QGCApplication::_checkForNewVersion() } } } -#endif } void QGCApplication::_qgcCurrentStableVersionDownloadComplete(QString /*remoteFile*/, QString localFile, QString errorMsg) { -#ifdef __mobile__ - Q_UNUSED(localFile) - Q_UNUSED(errorMsg) -#else if (errorMsg.isEmpty()) { QFile versionFile(localFile); if (versionFile.open(QIODevice::ReadOnly)) { @@ -867,7 +861,6 @@ void QGCApplication::_qgcCurrentStableVersionDownloadComplete(QString /*remoteFi } sender()->deleteLater(); -#endif } bool QGCApplication::_parseVersionText(const QString& versionString, int& majorVersion, int& minorVersion, int& buildVersion)