diff --git a/gerrit-common/src/main/java/com/google/gerrit/common/data/AccountService.java b/gerrit-common/src/main/java/com/google/gerrit/common/data/AccountService.java index 533dfa26a2..75872f48d0 100644 --- a/gerrit-common/src/main/java/com/google/gerrit/common/data/AccountService.java +++ b/gerrit-common/src/main/java/com/google/gerrit/common/data/AccountService.java @@ -17,7 +17,6 @@ package com.google.gerrit.common.data; import com.google.gerrit.common.audit.Audit; import com.google.gerrit.common.auth.SignInRequired; import com.google.gerrit.extensions.client.DiffPreferencesInfo; -import com.google.gerrit.reviewdb.client.Account; import com.google.gerrit.reviewdb.client.AccountProjectWatch; import com.google.gwtjsonrpc.common.AsyncCallback; import com.google.gwtjsonrpc.common.RemoteJsonService; @@ -30,9 +29,6 @@ import java.util.Set; @RpcImpl(version = Version.V2_0) public interface AccountService extends RemoteJsonService { - @SignInRequired - void myAccount(AsyncCallback callback); - @Audit @SignInRequired void changeDiffPreferences(DiffPreferencesInfo diffPref, diff --git a/gerrit-httpd/src/main/java/com/google/gerrit/httpd/rpc/account/AccountServiceImpl.java b/gerrit-httpd/src/main/java/com/google/gerrit/httpd/rpc/account/AccountServiceImpl.java index 63ec0754d6..a8c5210cf3 100644 --- a/gerrit-httpd/src/main/java/com/google/gerrit/httpd/rpc/account/AccountServiceImpl.java +++ b/gerrit-httpd/src/main/java/com/google/gerrit/httpd/rpc/account/AccountServiceImpl.java @@ -52,7 +52,6 @@ import java.util.Set; class AccountServiceImpl extends BaseServiceImplementation implements AccountService { - private final Provider currentUser; private final ProjectControl.Factory projectControlFactory; private final AgreementInfoFactory.Factory agreementInfoFactory; private final Provider queryBuilder; @@ -66,23 +65,12 @@ class AccountServiceImpl extends BaseServiceImplementation implements final Provider queryBuilder, SetDiffPreferences setDiff) { super(schema, identifiedUser); - this.currentUser = identifiedUser; this.projectControlFactory = projectControlFactory; this.agreementInfoFactory = agreementInfoFactory; this.queryBuilder = queryBuilder; this.setDiff = setDiff; } - @Override - public void myAccount(final AsyncCallback callback) { - run(callback, new Action() { - @Override - public Account run(ReviewDb db) throws OrmException { - return db.accounts().get(currentUser.get().getAccountId()); - } - }); - } - @Override public void changeDiffPreferences(final DiffPreferencesInfo diffPref, AsyncCallback callback) {