Commit a28d21d2 authored by maxbogue's avatar maxbogue Committed by Commit bot

Remove AccountManagerDelegate.removeAccount()

This method was unused and causing a deprecation warning.

BUG=486200

Review URL: https://codereview.chromium.org/1139783003

Cr-Commit-Position: refs/heads/master@{#329668}
parent 6a846b53
...@@ -37,9 +37,6 @@ public interface AccountManagerDelegate { ...@@ -37,9 +37,6 @@ public interface AccountManagerDelegate {
boolean addAccountExplicitly(Account account, String password, Bundle userdata); boolean addAccountExplicitly(Account account, String password, Bundle userdata);
AccountManagerFuture<Boolean> removeAccount(Account account,
AccountManagerCallback<Boolean> callback, Handler handler);
String getPassword(Account account); String getPassword(Account account);
void setPassword(Account account, String password); void setPassword(Account account, String password);
......
...@@ -72,12 +72,6 @@ public class SystemAccountManagerDelegate implements AccountManagerDelegate { ...@@ -72,12 +72,6 @@ public class SystemAccountManagerDelegate implements AccountManagerDelegate {
return mAccountManager.addAccountExplicitly(account, password, userdata); return mAccountManager.addAccountExplicitly(account, password, userdata);
} }
@Override
public AccountManagerFuture<Boolean> removeAccount(Account account,
AccountManagerCallback<Boolean> callback, Handler handler) {
return mAccountManager.removeAccount(account, callback, handler);
}
@Override @Override
public String getPassword(Account account) { public String getPassword(Account account) {
return mAccountManager.getPassword(account); return mAccountManager.getPassword(account);
......
...@@ -158,21 +158,6 @@ public class MockAccountManager implements AccountManagerDelegate { ...@@ -158,21 +158,6 @@ public class MockAccountManager implements AccountManagerDelegate {
return result; return result;
} }
@Override
public AccountManagerFuture<Boolean> removeAccount(Account account,
AccountManagerCallback<Boolean> callback, Handler handler) {
mAccounts.remove(getAccountHolder(account));
postAsyncAccountChangedEvent();
return runTask(mExecutor,
new AccountManagerTask<Boolean>(handler, callback, new Callable<Boolean>() {
@Override
public Boolean call() throws Exception {
// Removal always successful.
return true;
}
}));
}
@Override @Override
public String getPassword(Account account) { public String getPassword(Account account) {
return getAccountHolder(account).getPassword(); return getAccountHolder(account).getPassword();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment