sentences:  It was substantially replaced at the end of 2008 by the Armed Forces Act 2006, which created a unified code of military law for all three British Armed Forces.The whole Naval Discipline Act was repealed in October 2009.The Armed Forces Act 1981 amended certain aspects of the Act; most notably, it abolished the death penalty for the crime of espionage for the enemy on ships or in naval establishments.