def METHOD_NAME(self, listener):
    """Remove a previously registered listener.
    :param callable listener: The function or method to unregister.
    """
    try:
        self._listeners.remove(listener)
    except ValueError:
        _logger.warning('Trying to remove a listener that is not registered')