Delete dead old style myDiffPreferences RPC
This method is not invoked by any UI code. Drop the method. /accounts/self/preferences.diff provides the same data on a supported REST API. Change-Id: If88d8449f48e898fc84fdabad19341bd8063a737
This commit is contained in:
@@ -34,9 +34,6 @@ public interface AccountService extends RemoteJsonService {
|
||||
@SignInRequired
|
||||
void myAccount(AsyncCallback<Account> callback);
|
||||
|
||||
@SignInRequired
|
||||
void myDiffPreferences(AsyncCallback<AccountDiffPreference> callback);
|
||||
|
||||
@Audit
|
||||
@SignInRequired
|
||||
void changePreferences(AccountGeneralPreferences pref,
|
||||
|
||||
@@ -72,16 +72,6 @@ class AccountServiceImpl extends BaseServiceImplementation implements
|
||||
callback.onSuccess(currentUser.get().getAccount());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void myDiffPreferences(AsyncCallback<AccountDiffPreference> callback) {
|
||||
run(callback, new Action<AccountDiffPreference>() {
|
||||
@Override
|
||||
public AccountDiffPreference run(ReviewDb db) throws OrmException {
|
||||
return currentUser.get().getAccountDiffPreference();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public void changePreferences(final AccountGeneralPreferences pref,
|
||||
final AsyncCallback<VoidResult> callback) {
|
||||
run(callback, new Action<VoidResult>() {
|
||||
|
||||
Reference in New Issue
Block a user