]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu_agent: Drop destroy callback
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 27 Oct 2021 11:35:16 +0000 (13:35 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 12 Nov 2021 13:11:43 +0000 (14:11 +0100)
After previous cleanups this callback is unused. Remove it.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_agent.h
src/qemu/qemu_process.c

index 94eab9de9f5af62da07facdaf47339f07798d278..862f6b0a95f3e107c8b8e37707ab1a7baef6f652 100644 (file)
@@ -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,
index 3623cf2535bfb4b7899d25e0471f57a9dcdf28c7..ec5e6999f556ec0c20e030174a43a12beadf97ca 100644 (file)
@@ -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,
 };