Deletes superfluous lines.