It shall be unlawful for any candidate for commissioner of roads and revenues of Coffee County to enter into any agreement with any person or persons as to the disposal of any work, the purchase of any supplies, or as to any appointment under his control; and any person so offending shall be ineligible to hold said office, and he shall be removed therefrom if the fact of such agreement is not discovered until after he takes office.