Every valid ordinance of a municipality that becomes a borough of a united city shall remain valid within that borough until repealed by an ordinance of the united city either expressly or impliedly by legislation on the same subject.
65 ILCS 5/7-2-25