Remove vestigial code, fixes #17321, refs #14058.
Thanks Simon.