public void remove(RegisterSpec toRemove) {
    try {
      specs[toRemove.getReg()] = null;
      size = -1;
    } catch (ArrayIndexOutOfBoundsException ex) {
      // Translate the exception.
      throw new IllegalArgumentException("bogus reg");
    }
  }
Removes a spec from the set. Only the register number of the parameter is significant.

@param toRemove {@code non-null;} register to remove.
android/android_framework/dex-maker/src/main/java/com/android/dx/rop/code/RegisterSpecSet.java