render / rpms / libvirt

Forked from rpms/libvirt 9 months ago
Clone
d76c62
From 448ed3bee3e5b3a12a7bd0acd40ca0729214fba3 Mon Sep 17 00:00:00 2001
d76c62
Message-Id: <448ed3bee3e5b3a12a7bd0acd40ca0729214fba3@dist-git>
d76c62
From: Peter Krempa <pkrempa@redhat.com>
d76c62
Date: Tue, 4 Feb 2020 15:07:55 +0100
d76c62
Subject: [PATCH] qemu: domain: Remove unused qemuDomainDiskNodeFormatLookup
d76c62
MIME-Version: 1.0
d76c62
Content-Type: text/plain; charset=UTF-8
d76c62
Content-Transfer-Encoding: 8bit
d76c62
d76c62
The function has no users now and there's no need for it as the common
d76c62
pattern is to look up the whole disk object anyways.
d76c62
d76c62
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
d76c62
Reviewed-by: Eric Blake <eblake@redhat.com>
d76c62
(cherry picked from commit 180b3422e9a3391a0ee59d0076730ba85778fc7a)
d76c62
d76c62
https://bugzilla.redhat.com/show_bug.cgi?id=1207659
d76c62
Message-Id: <b6ab98ea54aced2d9aeb9abdca30fc4669b92bbe.1580824112.git.pkrempa@redhat.com>
d76c62
Reviewed-by: Ján Tomko <jtomko@redhat.com>
d76c62
---
d76c62
 src/qemu/qemu_domain.c | 14 --------------
d76c62
 src/qemu/qemu_domain.h |  3 ---
d76c62
 2 files changed, 17 deletions(-)
d76c62
d76c62
diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c
d76c62
index be9de75909..94efcdf9b1 100644
d76c62
--- a/src/qemu/qemu_domain.c
d76c62
+++ b/src/qemu/qemu_domain.c
d76c62
@@ -12092,20 +12092,6 @@ qemuDomainDiskChangeSupported(virDomainDiskDefPtr disk,
d76c62
 }
d76c62
 
d76c62
 
d76c62
-/* Return the format node name for a given disk of an online guest */
d76c62
-const char *
d76c62
-qemuDomainDiskNodeFormatLookup(virDomainObjPtr vm,
d76c62
-                               const char *disk)
d76c62
-{
d76c62
-    size_t i;
d76c62
-
d76c62
-    for (i = 0; i < vm->def->ndisks; i++) {
d76c62
-        if (STREQ(vm->def->disks[i]->dst, disk))
d76c62
-            return vm->def->disks[i]->src->nodeformat;
d76c62
-    }
d76c62
-    return NULL;
d76c62
-}
d76c62
-
d76c62
 bool
d76c62
 qemuDomainDiskBlockJobIsActive(virDomainDiskDefPtr disk)
d76c62
 {
d76c62
diff --git a/src/qemu/qemu_domain.h b/src/qemu/qemu_domain.h
d76c62
index d1ab5da2c7..cdcb6ecc7a 100644
d76c62
--- a/src/qemu/qemu_domain.h
d76c62
+++ b/src/qemu/qemu_domain.h
d76c62
@@ -865,9 +865,6 @@ int qemuDomainDetermineDiskChain(virQEMUDriverPtr driver,
d76c62
 bool qemuDomainDiskChangeSupported(virDomainDiskDefPtr disk,
d76c62
                                    virDomainDiskDefPtr orig_disk);
d76c62
 
d76c62
-const char *qemuDomainDiskNodeFormatLookup(virDomainObjPtr vm,
d76c62
-                                           const char *disk);
d76c62
-
d76c62
 void qemuDomainGetImageIds(virQEMUDriverConfigPtr cfg,
d76c62
                            virDomainObjPtr vm,
d76c62
                            virStorageSourcePtr src,
d76c62
-- 
d76c62
2.25.0
d76c62