Remove declaration of checked exception which isn't thrown.