Remove unnecessary lines.