public void removeAfter() {
    DiskRangeList other = this.next;
    if (this == other) {
      throw new AssertionError("Invalid duplicate [" + other + "]");
    }
    this.next = other.next;
    if (this.next != null) {
      this.next.prev = this;
    }
    other.next = other.prev = null;
  }
Removes an element after current from the list.
storage-api/src/java/org/apache/hadoop/hive/common/io/DiskRangeList.java