Update linelength to the new length of the line.
Not used. Removed.