From 4e473dd190dc48e62191bfb26ae741a74748a99c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Thu, 21 May 2020 04:47:26 +0200 Subject: [PATCH] Remove leftovers of default_fw_netvm The property is long gone, remove handling its change. --- qubes/app.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/qubes/app.py b/qubes/app.py index afff320d..f21be915 100644 --- a/qubes/app.py +++ b/qubes/app.py @@ -1523,20 +1523,6 @@ class Qubes(qubes.PropertyHolder): 'is not running ({!r}).'.format( name, newvalue.name)) - @qubes.events.handler('property-set:default_fw_netvm') - def on_property_set_default_fw_netvm(self, event, name, newvalue, - oldvalue=None): - # pylint: disable=unused-argument,invalid-name - for vm in self.domains: - if hasattr(vm, 'provides_network') and vm.provides_network and \ - hasattr(vm, 'netvm') and vm.property_is_default('netvm'): - # fire property-del:netvm as it is responsible for resetting - # netvm to it's default value - vm.fire_event('property-pre-del:netvm', pre_event=True, - name='netvm', oldvalue=oldvalue) - vm.fire_event('property-del:netvm', - name='netvm', oldvalue=oldvalue) - @qubes.events.handler('property-set:default_netvm') def on_property_set_default_netvm(self, event, name, newvalue, oldvalue=None):