remove dead extern