It has also been pointed out that, historically, in the "old west" there were a lot of towns that prohibited guns within city limits. Again, so what? The fact it was done and not challenged does not make it correct or proper or constitutional.
Though I'm not the scholar most of the learned folks here are, I recall that a lot of those towns were in territories, not states. Some weren't even territories when such regulations were enacted at the local level. I fail to see how a challenge could even be made to SCOTUS since they were not part of the United States of America.