code: def remove_event(self, ref):
          
          # is this reference one which has been setup?
          if ref in self._refs:
              self._refs[ref].remove_callback(ref)
docs: Removes an event for a ref (reference),