Skip to content

Commit

Permalink
[buteo-syncfw] Remove unused method in AccountsHelper.
Browse files Browse the repository at this point in the history
  • Loading branch information
dcaliste committed Jan 27, 2021
1 parent 374eeb9 commit 913dfb7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
14 changes: 0 additions & 14 deletions msyncd/AccountsHelper.cpp
Expand Up @@ -416,20 +416,6 @@ QString AccountsHelper::addAccountIfNotExists(Accounts::Account *account,
return profileName;
}

void AccountsHelper::addSetting(Accounts::AccountId id, QString key, QVariant value) {
FUNCTION_CALL_TRACE;

LOG_DEBUG("Account Id " << id << " Key = " << key << " Value = " << value);
Accounts::Account* account = iAccountManager->account(id);
if (account != NULL) {
account->setValue(key, value);
bool success = account->syncAndBlock();
if (!success) {
LOG_WARNING("Could not save settings to Account : Reason = " << iAccountManager->lastError().message());
}
}
}

void AccountsHelper::registerAccountListeners()
{
FUNCTION_CALL_TRACE;
Expand Down
2 changes: 0 additions & 2 deletions msyncd/AccountsHelper.h
Expand Up @@ -118,8 +118,6 @@ private Q_SLOTS:

void setSyncSchedule(SyncProfile *syncProfile, Accounts::AccountId id, bool aCreateNew = false);

void addSetting(Accounts::AccountId id, QString key, QVariant value);

void registerAccountListener(Accounts::AccountId id);

Accounts::Manager *iAccountManager;
Expand Down

0 comments on commit 913dfb7

Please sign in to comment.