From: Peter Krempa <[email protected]>

The function is unused remove it.

Signed-off-by: Peter Krempa <[email protected]>
---
 src/qemu/qemu_domain.c | 17 -----------------
 src/qemu/qemu_domain.h |  3 ---
 2 files changed, 20 deletions(-)

diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c
index e87ea8bdc0..a43a5c0e4f 100644
--- a/src/qemu/qemu_domain.c
+++ b/src/qemu/qemu_domain.c
@@ -9272,23 +9272,6 @@ qemuDomainVcpuPersistOrder(virDomainDef *def)
 }


-bool
-qemuDomainSupportsVideoVga(const virDomainVideoDef *video,
-                           virQEMUCaps *qemuCaps)
-{
-    if (video->type == VIR_DOMAIN_VIDEO_TYPE_VIRTIO) {
-        if (video->backend == VIR_DOMAIN_VIDEO_BACKEND_TYPE_VHOSTUSER) {
-            if (!virQEMUCapsGet(qemuCaps, QEMU_CAPS_DEVICE_VHOST_USER_VGA))
-                return false;
-        } else if (!virQEMUCapsGet(qemuCaps, QEMU_CAPS_DEVICE_VIRTIO_VGA)) {
-            return false;
-        }
-    }
-
-    return true;
-}
-
-
 /**
  * qemuDomainNeedsVFIO:
  * @def: domain definition to check
diff --git a/src/qemu/qemu_domain.h b/src/qemu/qemu_domain.h
index f1654d8a19..50ab492023 100644
--- a/src/qemu/qemu_domain.h
+++ b/src/qemu/qemu_domain.h
@@ -980,9 +980,6 @@ bool qemuDomainVcpuHotplugIsInOrder(virDomainDef *def)
 void qemuDomainVcpuPersistOrder(virDomainDef *def)
     ATTRIBUTE_NONNULL(1);

-bool qemuDomainSupportsVideoVga(const virDomainVideoDef *video,
-                                virQEMUCaps *qemuCaps);
-
 bool qemuDomainNeedsVFIO(const virDomainDef *def);

 int qemuDomainGetHostdevPath(virDomainHostdevDef *dev,
-- 
2.54.0

Reply via email to