After previous cleanups this callback is unused. Remove it.
Signed-off-by: Michal Privoznik <mprivozn(a)redhat.com>
---
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