Codes are written for the house and not for a particular home owner. While you may not park your car in the garage, if a car can be parked in the garage, code usually requires a post unless water heater is in an alcove.