AccountLinkPanel: Remove unused constructor and link method

Change-Id: I5b19dc2d1c5c44b00e12909e950b875789c945ac
This commit is contained in:
David Pursehouse
2016-02-18 15:33:41 +09:00
parent 8b6d2f52c3
commit 3db8abaf63

View File

@@ -19,24 +19,12 @@ import com.google.gerrit.client.FormatUtil;
import com.google.gerrit.client.Gerrit;
import com.google.gerrit.client.info.AccountInfo;
import com.google.gerrit.common.PageLinks;
import com.google.gerrit.common.data.AccountInfoCache;
import com.google.gerrit.reviewdb.client.Account;
import com.google.gerrit.reviewdb.client.Change;
import com.google.gerrit.reviewdb.client.UserIdentity;
import com.google.gwt.user.client.ui.FlowPanel;
/** Link to any user's account dashboard. */
public class AccountLinkPanel extends FlowPanel {
/** Create a link after locating account details from an active cache. */
public static AccountLinkPanel link(AccountInfoCache cache, Account.Id id) {
com.google.gerrit.common.data.AccountInfo ai = cache.get(id);
return ai != null ? new AccountLinkPanel(ai) : null;
}
public AccountLinkPanel(com.google.gerrit.common.data.AccountInfo ai) {
this(FormatUtil.asInfo(ai));
}
public AccountLinkPanel(UserIdentity ident) {
this(AccountInfo.create(
ident.getAccount().get(),