config: Remove unused 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:16:01 -07:00 committed by James Valleroy
parent bd05c43d32
commit 173d3464b0
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808
2 changed files with 2 additions and 7 deletions

View File

@ -26,8 +26,8 @@ from django.utils.translation import ugettext as _
from plinth import actions
from plinth.modules import config
from plinth.signals import (domain_added, domain_removed, domainname_change,
post_hostname_change, pre_hostname_change)
from plinth.signals import (domain_added, domain_removed, post_hostname_change,
pre_hostname_change)
from .forms import ConfigurationForm
@ -151,10 +151,6 @@ def set_domainname(domainname, old_domainname):
LOGGER.info('Changing domain name to - %s', domainname)
actions.superuser_run('domainname-change', [domainname])
domainname_change.send_robust(sender='config',
old_domainname=old_domainname,
new_domainname=domainname)
# Update domain registered with Name Services module.
if old_domainname:
domain_removed.send_robust(sender='config',

View File

@ -25,7 +25,6 @@ post_module_loading = Signal()
post_setup = Signal(providing_args=['module_name'])
pre_hostname_change = Signal(providing_args=['old_hostname', 'new_hostname'])
post_hostname_change = Signal(providing_args=['old_hostname', 'new_hostname'])
domainname_change = Signal(providing_args=['old_domainname', 'new_domainname'])
domain_added = Signal(
providing_args=['domain_type', 'name', 'description', 'services'])
domain_removed = Signal(providing_args=['domain_type', 'name'])