aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);