Without prejudice to the prescript of can. 5, a contrary custom or law revokes a custom which is contrary to or beyond the law (praeter legem). Unless it makes express mention of them, however, a law does not revoke centenary or immemorial customs, nor does a universal law revoke particular customs.
Source: Code of Canon Law (Vatican.va)