remove various dead version checks (closes #22349)

Patch from Thomas Kluyver.
merge 3.4 (#22349)