gerrit/gerrit-gwtui
David Ostrovsky 0ba597b678 ChangeScreen: Remove no-op change actions copy operation
Before I6a5bf05525 actions map was created to enable delete change
button on draft changes only:

  private void initChangeAction(ChangeInfo info) {
    if (info.status() == Status.DRAFT) {
      NativeMap<ActionInfo> actions = info.hasActions()
          ? info.actions()
          : NativeMap.<ActionInfo> create();
      actions.copyKeysIntoChildren("id");
      if (actions.containsKey("/")) {
        deleteChange.setVisible(true);
        deleteChange.setTitle(actions.get("/").title());
      }
    }
  }

In I6a5bf05525 the logic was extended to non draft changes as well.  In
I0566f6de6a delete change button was moved out from the change screen
class to Actions class. The copying of the actions was left over and
became a no-op.

Change-Id: I7a68116040cd2ae2ccff855d1fa481d5159d0e8d
2017-02-25 19:37:51 +01:00
..
src ChangeScreen: Remove no-op change actions copy operation 2017-02-25 19:37:51 +01:00
BUILD Bazel: Reformat build files 2016-12-07 11:33:07 +00:00