mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
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>
This commit is contained in:
parent
1fd6b59a21
commit
5b3ecea4a0
2 changed files with 0 additions and 21 deletions
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue