Delete control statement from code