All judgments given, and all acts executed or done by any person by authority or color of any office or post, or the deputation thereof, before his removal therefrom, shall be as valid as they would be if this chapter had not been enacted; but every contract or security made or obtained in violation of this chapter shall be void.
Code 1950, § 2-33; 1966, c. 677, § 2.1-37; 2001, c. 844.