When the duties of the city treasurer have been transferred to the county treasurer, one-fourth of 1 percent shall be deducted from the money collected by the county tax collector as compensation for the services of the county treasurer and paid into the county salary fund.