Remove unneeded lines