I don't think there is any moat here, most European countries have these kind of "deprecated" laws, that are not enforced and just stay there because it's too much of a hassle to remove. In France, I think there are still laws forbidding women to wear jeans, and requiring permission of the husband to work. Still in the text of law, but obviously non enforceable.
This is not a deprecated law but rather was changed towards its current form on January 1st of this year
Such laws are unenforceable until someone comes along who decides that enforcement would be useful to them.
US has just as many if not even more. Every state has their own collection of weird laws, like donkeys are not allowed to sleep in bathtubs or dandelions are illegal to grow over a certain height.
> forbidding women to wear jeans
This police ordinance from 1800 was abolished in 2013
> requiring permission of the husband to work
Repealed in 1965