aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar jan Iversen <jan@casacondor.com>2019-12-28 18:44:43 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-12-29 12:20:19 -0800
commit5b3ecea4a0b9bd0f65d78592fb923d5270286354 (patch)
tree57e83ba86c35783bf835021339f7bbed01b09fc1
parent1fd6b59a21e82fd58b3d3e93a401a4ed941db7e3 (diff)
downloadsubsurface-5b3ecea4a0b9bd0f65d78592fb923d5270286354.tar.gz
mobile-widgets: remove setCredentialStatus() from qmlprefs
Remove no longer used function setCredentialStatus() from qmlprefs. This is done to secure there are no missing setCredentialStatus calls in the code. Signed-off-by: Jan Iversen <jan@casacondor.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--mobile-widgets/qmlprefs.cpp19
-rw-r--r--mobile-widgets/qmlprefs.h2
2 files changed, 0 insertions, 21 deletions
diff --git a/mobile-widgets/qmlprefs.cpp b/mobile-widgets/qmlprefs.cpp
index 59bd9767b..fa3fb6dcb 100644
--- a/mobile-widgets/qmlprefs.cpp
+++ b/mobile-widgets/qmlprefs.cpp
@@ -32,25 +32,6 @@ QMLPrefs *QMLPrefs::instance()
/*** public functions ***/
-
-void QMLPrefs::setCredentialStatus(const qPrefCloudStorage::cloud_status value)
-{
- if ((qPrefCloudStorage::cloud_status)qPrefCloudStorage::cloud_verification_status() != value) {
- setOldStatus((qPrefCloudStorage::cloud_status)qPrefCloudStorage::cloud_verification_status());
- if (value == qPrefCloudStorage::CS_NOCLOUD) {
- QMLManager::instance()->appendTextToLog("Switching to no cloud mode");
- set_filename(NOCLOUD_LOCALSTORAGE);
- qPrefCloudStorage::set_cloud_storage_email(NULL);
- qPrefCloudStorage::set_cloud_storage_password(NULL);
- if (qPrefUnits::unit_system() == "imperial")
- prefs.units = IMPERIAL_units;
- else if (qPrefUnits::unit_system() == "metric")
- prefs.units = SI_units;
- }
- qPrefCloudStorage::set_cloud_verification_status(value);
- }
-}
-
qPrefCloudStorage::cloud_status QMLPrefs::oldStatus() const
{
return m_oldStatus;
diff --git a/mobile-widgets/qmlprefs.h b/mobile-widgets/qmlprefs.h
index 3ff394c67..9fc538017 100644
--- a/mobile-widgets/qmlprefs.h
+++ b/mobile-widgets/qmlprefs.h
@@ -23,8 +23,6 @@ public:
static QMLPrefs *instance();
- void setCredentialStatus(const qPrefCloudStorage::cloud_status value);
-
qPrefCloudStorage::cloud_status oldStatus() const;
void setOldStatus(const qPrefCloudStorage::cloud_status value);