From bc32852e1780820d3a4a9fe36d7ece3c4bfe76c9 Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Mon, 24 Aug 2020 13:17:11 -0400 Subject: [PATCH] connection: Remove unused 'vm-renamed' signal Signed-off-by: Cole Robinson --- virtManager/connection.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/virtManager/connection.py b/virtManager/connection.py index 16f4f6e3..f9edd1c8 100644 --- a/virtManager/connection.py +++ b/virtManager/connection.py @@ -142,7 +142,6 @@ class vmmConnection(vmmGObject): __gsignals__ = { "vm-added": (vmmGObject.RUN_FIRST, None, [str]), "vm-removed": (vmmGObject.RUN_FIRST, None, [str]), - "vm-renamed": (vmmGObject.RUN_FIRST, None, [str, str]), "net-added": (vmmGObject.RUN_FIRST, None, [str]), "net-removed": (vmmGObject.RUN_FIRST, None, [str]), "pool-added": (vmmGObject.RUN_FIRST, None, [str]), @@ -567,6 +566,7 @@ class vmmConnection(vmmGObject): return self._backend.storagePoolDefineXML(xml, 0) def rename_object(self, obj, origxml, newxml, oldconnkey): + ignore = oldconnkey if obj.is_domain(): define_cb = self.define_domain elif obj.is_pool(): @@ -609,9 +609,6 @@ class vmmConnection(vmmGObject): # Reinsert handle into new obj obj.change_name_backend(newobj) - if newobj and obj.is_domain(): - self.emit("vm-renamed", oldconnkey, obj.get_connkey()) - ######################### # Domain event handling #