Reverts Vector::eraseObject, not need to return iterator.