Previously would use global
CLIENT_VERSIONno matter what, but this is one sense a refactor since all of the places where WriteVersion is called currently call it withCLIENT_VERSIONanyways. Theclient_versionargument is kept since future test code may want to write other versions.
Addresses a review comment from #32636:
This was originally pointed out in #32636 (review), and the followup (#34490) was never merged. However I think it's confusing to have functions that take arguments but ignore them (and it's dead code), so I've cherry-picked the fix up from #34490.