Remove old rebaseChange RPC
Change-Id: Ieb55dd1c01f1161649400a375119bdd89ec50330
This commit is contained in:
@@ -543,8 +543,13 @@ class PatchSetComplexDisclosurePanel extends ComplexDisclosurePanel
|
||||
@Override
|
||||
public void onClick(final ClickEvent event) {
|
||||
b.setEnabled(false);
|
||||
Util.MANAGE_SVC.rebaseChange(patchSet.getId(),
|
||||
new ChangeDetailCache.GerritWidgetCallback(b));
|
||||
final Change.Id id = patchSet.getId().getParentKey();
|
||||
ChangeApi.rebase(id.get(), patchSet.getRevision().get(),
|
||||
new GerritCallback<ChangeInfo>() {
|
||||
public void onSuccess(ChangeInfo result) {
|
||||
Gerrit.display(PageLinks.toChange(id));
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
actionsPanel.add(b);
|
||||
|
||||
@@ -15,7 +15,6 @@
|
||||
package com.google.gerrit.client.changes;
|
||||
|
||||
import com.google.gerrit.common.data.ChangeDetailService;
|
||||
import com.google.gerrit.common.data.ChangeManageService;
|
||||
import com.google.gerrit.reviewdb.client.Change;
|
||||
import com.google.gwt.core.client.GWT;
|
||||
import com.google.gwtjsonrpc.client.JsonUtil;
|
||||
@@ -26,7 +25,6 @@ public class Util {
|
||||
public static final ChangeResources R = GWT.create(ChangeResources.class);
|
||||
|
||||
public static final ChangeDetailService DETAIL_SVC;
|
||||
public static final ChangeManageService MANAGE_SVC;
|
||||
|
||||
private static final int SUBJECT_MAX_LENGTH = 80;
|
||||
private static final String SUBJECT_CROP_APPENDIX = "...";
|
||||
@@ -35,9 +33,6 @@ public class Util {
|
||||
static {
|
||||
DETAIL_SVC = GWT.create(ChangeDetailService.class);
|
||||
JsonUtil.bind(DETAIL_SVC, "rpc/ChangeDetailService");
|
||||
|
||||
MANAGE_SVC = GWT.create(ChangeManageService.class);
|
||||
JsonUtil.bind(MANAGE_SVC, "rpc/ChangeManageService");
|
||||
}
|
||||
|
||||
public static String toLongString(final Change.Status status) {
|
||||
|
||||
Reference in New Issue
Block a user