Remove obsolete unused variable fromUndo. Update polygon names and their vertex names when removing a polygon.