letsencrypt: Remove unused listen to domain change signal

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa 2019-08-01 21:14:46 -07:00 committed by James Valleroy
parent 012db6ac93
commit bd05c43d32
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -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"""