Merge "delete not used GerritWidgetCallback and OldGerritCallback"

This commit is contained in:
Shawn Pearce
2014-03-12 16:42:37 +00:00
committed by Gerrit Code Review

View File

@@ -61,35 +61,6 @@ public class ChangeDetailCache extends ListenableValue<ChangeDetail> {
}
}
public static class OldGerritCallback extends
com.google.gerrit.client.rpc.GerritCallback<ChangeDetail> {
@Override
public void onSuccess(ChangeDetail detail) {
setChangeDetail(detail);
}
}
/*
* GerritCallback which will re-enable a FocusWidget
* {@link com.google.gwt.user.client.ui.FocusWidget} if we are returning
* with a failed result.
*
* It is up to the caller to handle the original disabling of the Widget.
*/
public static class GerritWidgetCallback extends OldGerritCallback {
private FocusWidget widget;
public GerritWidgetCallback(FocusWidget widget) {
this.widget = widget;
}
@Override
public void onFailure(Throwable caught) {
widget.setEnabled(true);
super.onFailure(caught);
}
}
public static class IgnoreErrorCallback implements AsyncCallback<ChangeDetail> {
@Override
public void onSuccess(ChangeDetail info) {