def METHOD_NAME(self, definition: "Definition"):
    """
    Remove all uses of a given definition.
    :param definition:  The definition of which to remove the uses.
    :return:            None
    """
    if definition in self._uses_by_definition:
        codeloc_and_ids = self._uses_by_definition[definition]
        del self._uses_by_definition[definition]
        for codeloc, _ in codeloc_and_ids:
            for item in list(self._uses_by_location[codeloc]):
                if item[0] == definition:
                    self._uses_by_location[codeloc].remove(item)