From e812213bc1d4ffc934c3e11fe012ade1fa56ad06 Mon Sep 17 00:00:00 2001 From: Michal Privoznik Date: Wed, 27 Oct 2021 13:35:16 +0200 Subject: [PATCH] qemu_agent: Drop destroy callback MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit After previous cleanups this callback is unused. Remove it. Signed-off-by: Michal Privoznik Reviewed-by: Ján Tomko --- 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 94eab9de9f..862f6b0a95 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 3623cf2535..ec5e6999f5 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, };