With the advent of regulatory law the legal codes are no longer the full story. It’s quite possible they are decisions of a regulatory body which will not show up in statute.
Again, note that many of the apocryphal stories about "weird laws still on the books" refer not to small cities, but the kind of large, old cities whose laws are easily accessible via the web.
https://guides.ll.georgetown.edu/newyork-in-depth/local-gove...