Remove unused param (updates #32340)
Remove deprecated filter (has been deprecated since 3.7 - updates #32340)
Eliminate unnecessary queries when testing for existence of previous events (updates #32340)
Remove deprecated  filter tribe_has_next_events (updates #32340)
Remove unused parameter from tribe_has_next_event() (updates #32340)
Do not query unless necessary within tribe_has_next_event() (updates #32340)
Formatting