All fines and forfeitures used for and recovered under the provisions of this chapter shall be paid by the magistrate or constable collecting them to the county treasurer wherein such fines or forfeitures accrued.