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