Removed some dead code. Moved extendedlinemarker to where it was
actually used.