Actually the Second Amendment was written with having no way to pay for a standing army in mind, so it gave free white men the right to be conscripted into service at a moment's notice and the government was so broke they couldn't even afford to give them bullets, let alone guns, so they had to supply their own and be proficient in their use and maintenance.
Since states have their own funded militias now, the National Guard, and the Federal Government has its military branches, there is no need for the Second Amendment anymore.