diff --git a/plinth/modules/letsencrypt/__init__.py b/plinth/modules/letsencrypt/__init__.py index 0c802bf66..c65d504ba 100644 --- a/plinth/modules/letsencrypt/__init__.py +++ b/plinth/modules/letsencrypt/__init__.py @@ -29,8 +29,7 @@ from plinth import app as app_module from plinth import cfg, menu from plinth.errors import ActionError from plinth.modules import names -from plinth.signals import (domain_added, domain_removed, domainname_change, - post_module_loading) +from plinth.signals import domain_added, domain_removed, post_module_loading from plinth.utils import format_lazy from . import components @@ -92,7 +91,6 @@ def init(): app = LetsEncryptApp() app.set_enabled(True) - domainname_change.connect(on_domainname_change) domain_added.connect(on_domain_added) domain_removed.connect(on_domain_removed) @@ -150,13 +148,6 @@ def certificate_delete(domain): components.on_certificate_event('deleted', [domain], None) -def on_domainname_change(sender, old_domainname, new_domainname, **kwargs): - """Drop the certificate after a domain name change.""" - del sender # Unused - del new_domainname # Unused - del kwargs # Unused - - def on_domain_added(sender, domain_type='', name='', description='', services=None, **kwargs): """Obtain a certificate for the new domain"""