'Removes a descriptor from the collection.
:param descriptor:
An instance of :class:`KeventDescriptor` to be removed.'

def _remove_descriptor(self, descriptor):

    self._descriptors.remove(descriptor)
    del self._descriptor_for_fd[descriptor.fd]
    del self._descriptor_for_path[descriptor.path]
    self._kevents.remove(descriptor.kevent)
    descriptor.close()
