(self, definition: 'Definition')
Remove all uses of a given definition.

        :param definition:  The definition of which to remove the uses.
        :return:            None
Remove all uses of a given definition.
Remove all uses of a given definition .
def remove_uses(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:
            codelocs = self._uses_by_definition[definition]
            del self._uses_by_definition[definition]

            for codeloc in codelocs:
                self._uses_by_location[codeloc].remove(definition)
def remove_uses ( self , definition : 'Definition' ) : if definition in self . _uses_by_definition : codelocs = self . _uses_by_definition [ definition ] del self . _uses_by_definition [ definition ] for codeloc in codelocs : self . _uses_by_location [ codeloc ] . remove ( definition )