Remove unneeded lines.