public void removeSuccessor(int oldIndex) {
    int removeIndex = 0;

    for (int i = successorList.size() - 1; i >= 0; i--) {
      if (successorList.get(i) == oldIndex) {
        removeIndex = i;
      } else {
        primarySuccessor = successorList.get(i);
      }
    }

    successorList.removeIndex(removeIndex);
    successors.clear(oldIndex);
    parent.getBlocks().get(oldIndex).predecessors.clear(index);
  }
Removes a successor from this block's successor list.

@param oldIndex index of successor block to remove
android/android_framework/dex-maker/src/main/java/com/android/dx/ssa/SsaBasicBlock.java