No court in the Commonwealth shall in any case, in which a fine is assessed for the violation of any law of the Commonwealth, or any subdivision thereof, assess, as a part of the cost of the case any fee for arrest, or as a witness, for the benefit of any police officer of the Department of State Police; nor shall any such police officer receive any such fee. Any such police officer who accepts or receives any such fee shall be guilty of a misdemeanor and shall be punished by a fine of not more than $100, and in addition the Superintendent may remove him therefor. But such officers are not prohibited from accepting or receiving rewards.
Va. Code § 52-10