From 173d3464b09ca41a3954a53049a561227c77b353 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Thu, 1 Aug 2019 21:16:01 -0700 Subject: [PATCH] config: Remove unused domain change signal Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- plinth/modules/config/views.py | 8 ++------ plinth/signals.py | 1 - 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/plinth/modules/config/views.py b/plinth/modules/config/views.py index b7ffb7f8c..a0f264c30 100644 --- a/plinth/modules/config/views.py +++ b/plinth/modules/config/views.py @@ -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', diff --git a/plinth/signals.py b/plinth/signals.py index a64649c06..5bf373254 100644 --- a/plinth/signals.py +++ b/plinth/signals.py @@ -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'])