A [recent Travel Stack Exchange question](https://travel.stackexchange.com/questions/157373/how-to-lawfully-leave-united-states-without-a-united-states-passport-for-united) about an immigration provision in the federal code lead to a bunch of respondents noting that the law in question is simply not enforced, with one person openly disparaging it as “nonenforced and nonenforceable.”

Obviously there's a problem at some level (legal/moral/philosophical/practical...) at laws that are not enforced. But is that an impossible ideal? My question is therefore, have there ever been legal systems that have enforced all of their laws?

---

Edit: The question is not whether the police always catch the criminals, or whether any state has been sufficiently totalitarian to be aware of all crimes. What I'm curious about is a government that refrained from making laws that it couldn't plausibly enforce, or systematically removed laws that it turned out not to be able to enforce.