code: def _removeSegment(self, segment, preserveCurve, **kwargs):
          
          segment = self.segments[segment]
          for point in segment.points:
              self.removePoint(point, preserveCurve)
docs: segment will be a valid segment index.
          preserveCurve will be a boolean.
  
          Subclasses may override this method.