From 73ada8b2b98bf5b9f116cb843063eec2b4eb15e4 Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Tue, 29 Jul 2025 14:07:01 +0200 Subject: [PATCH] qemu: domain: Remove unused qemuDomainGetVcpuHalted MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Unused since commit 2222548b1e55257dc8806abdbefa71a87b22dea1 Signed-off-by: Peter Krempa Reviewed-by: Ján Tomko --- src/qemu/qemu_domain.c | 15 --------------- src/qemu/qemu_domain.h | 1 - 2 files changed, 16 deletions(-) diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c index a2c7c88a7e..e45757ccd5 100644 --- a/src/qemu/qemu_domain.c +++ b/src/qemu/qemu_domain.c @@ -8603,21 +8603,6 @@ qemuDomainRefreshVcpuInfo(virDomainObj *vm, return ret; } -/** - * qemuDomainGetVcpuHalted: - * @vm: domain object - * @vcpu: cpu id - * - * Returns the vCPU halted state. - */ -bool -qemuDomainGetVcpuHalted(virDomainObj *vm, - unsigned int vcpuid) -{ - virDomainVcpuDef *vcpu = virDomainDefGetVcpu(vm->def, vcpuid); - return QEMU_DOMAIN_VCPU_PRIVATE(vcpu)->halted; -} - /** * qemuDomainRefreshVcpuHalted: * @driver: qemu driver data diff --git a/src/qemu/qemu_domain.h b/src/qemu/qemu_domain.h index 1afd932764..ffe5bee1bf 100644 --- a/src/qemu/qemu_domain.h +++ b/src/qemu/qemu_domain.h @@ -870,7 +870,6 @@ int qemuDomainValidateVcpuInfo(virDomainObj *vm); int qemuDomainRefreshVcpuInfo(virDomainObj *vm, int asyncJob, bool state); -bool qemuDomainGetVcpuHalted(virDomainObj *vm, unsigned int vcpu); int qemuDomainRefreshVcpuHalted(virDomainObj *vm, int asyncJob); -- 2.47.3