public void removeValueAt(int index) {
    	if (index < 0 || index >= size) {
    		throw new IndexOutOfBoundsException();
    	}
        System.arraycopy(ints, index+1, ints, index, size-index-1);
		size--;
		if (size < ints.length / 4) {
			shrinkArray();
		}
    }
Removes the value at the given index decreasing the array list size by 1.
@param index the index to remove.
@throws IndexOutOfBoundsException if the index is negative
Ghidra/Framework/Generic/src/main/java/ghidra/util/datastruct/IntArrayList.java