[PATCH 3/4] qemu_agent: Drop destroy callback

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



After previous cleanups this callback is unused. Remove it.

Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
---
 src/qemu/qemu_agent.h   | 2 --
 src/qemu/qemu_process.c | 9 ---------
 2 files changed, 11 deletions(-)

diff --git a/src/qemu/qemu_agent.h b/src/qemu/qemu_agent.h
index 81b45b8e5d..b5954e76e7 100644
--- a/src/qemu/qemu_agent.h
+++ b/src/qemu/qemu_agent.h
@@ -28,8 +28,6 @@ typedef struct _qemuAgent qemuAgent;
 
 typedef struct _qemuAgentCallbacks qemuAgentCallbacks;
 struct _qemuAgentCallbacks {
-    void (*destroy)(qemuAgent *mon,
-                    virDomainObj *vm);
     void (*eofNotify)(qemuAgent *mon,
                       virDomainObj *vm);
     void (*errorNotify)(qemuAgent *mon,
diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c
index b1fd72d269..ba9e9a5aa0 100644
--- a/src/qemu/qemu_process.c
+++ b/src/qemu/qemu_process.c
@@ -193,17 +193,8 @@ qemuProcessHandleAgentError(qemuAgent *agent G_GNUC_UNUSED,
     virObjectUnlock(vm);
 }
 
-static void qemuProcessHandleAgentDestroy(qemuAgent *agent,
-                                          virDomainObj *vm)
-{
-    VIR_DEBUG("Received destroy agent=%p vm=%p", agent, vm);
-
-    virObjectUnref(vm);
-}
-
 
 static qemuAgentCallbacks agentCallbacks = {
-    .destroy = qemuProcessHandleAgentDestroy,
     .eofNotify = qemuProcessHandleAgentEOF,
     .errorNotify = qemuProcessHandleAgentError,
 };
-- 
2.32.0




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux