def unregister(self, service):
        """Unregister a hosting service.

        This will remove all registered URLs that the hosting service has
        defined.

        Args:
            service (type):
                The
                :py:class:`~reviewboard.hostingsvcs.service.HostingService`
                subclass.
        """
        super(HostingServiceRegistry, self).unregister(service)

        if service.id in self._url_patterns:
            cls_urlpatterns = self._url_patterns[service.id]
            hostingsvcs_urls.dynamic_urls.remove_patterns(cls_urlpatterns)
            del self._url_patterns[service.id]
dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/hostingsvcs/service.py/HostingServiceRegistry.unregister/original