remove device ,darwin related lines