Immediately upon reorganization, all ordinances of the cities and the county shall be deemed repealed. Such repeal shall not discharge any person from any existing civil or criminal liability, nor affect any pending prosecution for violation of any such ordinances, nor affect vested rights created pursuant to said ordinances. The charter may provide that ordinances of any city, reorganized and consolidated, or the county shall remain in effect and shall be applicable throughout the city-county until repealed by the legislative body of the city-county.
Ca. Gov. Code § 51947