mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-25 22:46:04 +03:00
Remove unused AccountState::writeToSettings
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
446bb29155
commit
7084310a9f
3 changed files with 0 additions and 12 deletions
|
@ -249,7 +249,6 @@ void AccountManager::save(bool saveCredentials)
|
|||
for (const auto &acc : qAsConst(_accounts)) {
|
||||
settings->beginGroup(acc->account()->id());
|
||||
saveAccountHelper(acc->account().data(), *settings, saveCredentials);
|
||||
acc->writeToSettings(*settings);
|
||||
settings->endGroup();
|
||||
}
|
||||
|
||||
|
@ -274,7 +273,6 @@ void AccountManager::saveAccountState(AccountState *a)
|
|||
qCDebug(lcAccountManager) << "Saving account state" << a->account()->url().toString();
|
||||
const auto settings = ConfigFile::settingsWithGroup(QLatin1String(accountsC));
|
||||
settings->beginGroup(a->account()->id());
|
||||
a->writeToSettings(*settings);
|
||||
settings->endGroup();
|
||||
|
||||
settings->sync();
|
||||
|
|
|
@ -83,10 +83,6 @@ AccountState *AccountState::loadFromSettings(AccountPtr account, QSettings & /*s
|
|||
return accountState;
|
||||
}
|
||||
|
||||
void AccountState::writeToSettings(QSettings & /*settings*/)
|
||||
{
|
||||
}
|
||||
|
||||
AccountPtr AccountState::account() const
|
||||
{
|
||||
return _account;
|
||||
|
|
|
@ -93,12 +93,6 @@ public:
|
|||
*/
|
||||
static AccountState *loadFromSettings(AccountPtr account, QSettings &settings);
|
||||
|
||||
/** Writes account state information to settings.
|
||||
*
|
||||
* It does not write the Account data.
|
||||
*/
|
||||
void writeToSettings(QSettings &settings);
|
||||
|
||||
AccountPtr account() const;
|
||||
|
||||
ConnectionStatus connectionStatus() const;
|
||||
|
|
Loading…
Reference in a new issue