I can only speak from my layman's understanding of US law. In the US, there's a doctrine prosecutorial discretion. Basically the police and prosecutors can choose whether to arrest and charge someone for a crime.
> "Maybe in places where code law is mostly binding, there’s a lot more pressure on the legislature to keep the law books up to date with the current norms of society."
In the US, where everything is so entwined with politics, there's a lot unenforceable laws still on the books.
For example, the US Supreme Court struck down sodomy laws in 2003. Last I checked, Texas still has a law on the books criminalizing sodomy. Sure Texas can't enforce it, but the conservative majority in the legislature won't actually repeal the law because politics. Similarly, when the US Supreme Court ruled that banning same-sex marriage was unconstitutional, Texas had to recognize same-sex marriage. But there was no law allowing same-sex couples to divorce. So there was this weird limbo wherein you couldn't get divorced if you were in a same-sex marriage.
There's a difference between laws that exist but are rendered moot by a court ruling it unconstitutional, and laws that exist and are constitutional but are just never used, and laws that exist, and are probably not constitutional, but aren't used, so have never been challenged.
For all intents and purposes sodomy was made legal by the 2003 precedent; that those laws are still technically in black-and-white doesn't mean they're in force.
But there are lots of laws that are still in force but aren't actually picked up and used much. They're still there, though. For instance, hardly anyone was prosecuted for Espionage Act violations for decades, but nobody disputes that the DoJ can dust that law off and start using it again, subject to the current jurisprudence on free speech etc.
> "Maybe in places where code law is mostly binding, there’s a lot more pressure on the legislature to keep the law books up to date with the current norms of society."
In the US, where everything is so entwined with politics, there's a lot unenforceable laws still on the books.
For example, the US Supreme Court struck down sodomy laws in 2003. Last I checked, Texas still has a law on the books criminalizing sodomy. Sure Texas can't enforce it, but the conservative majority in the legislature won't actually repeal the law because politics. Similarly, when the US Supreme Court ruled that banning same-sex marriage was unconstitutional, Texas had to recognize same-sex marriage. But there was no law allowing same-sex couples to divorce. So there was this weird limbo wherein you couldn't get divorced if you were in a same-sex marriage.
America is weird.