remove unused listen statements