code: def removeComponent(self, component):
          
          if isinstance(component, int):
              index = component
          else:
              index = self._getComponentIndex(component)
          index = normalizers.normalizeIndex(index)
          if index >= self._len__components():
              raise ValueError("No component located at index %d." % index)
          self._removeComponent(index)
docs: Remove ``component`` from the glyph.
  
              >>> glyph.removeComponent(component)
  
          ``component`` may be a :ref:`BaseComponent` or an
          :ref:`type-int` representing a component index.