Agreed.  That line needs to go.  I haven't tested this patch and wonder about how it will perform on very large buffers.  I worked for ages to get the 'occur' mode stuff performing well.