[libvirt] [PATCH] tests: Drop unnecessary variables

Andrea Bolognani abologna at redhat.com
Tue Mar 12 13:10:52 UTC 2019


In qemuxml2xmltest, both activeVcpus and blockjobs members
of the testInfo struct have been entirely unused ever since
commit d1a7fc8bb303.

Signed-off-by: Andrea Bolognani <abologna at redhat.com>
---
Pushed as trivial.

 tests/qemuxml2xmltest.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/tests/qemuxml2xmltest.c b/tests/qemuxml2xmltest.c
index e08d30c676..3efa498114 100644
--- a/tests/qemuxml2xmltest.c
+++ b/tests/qemuxml2xmltest.c
@@ -30,9 +30,6 @@ struct testInfo {
     char *outActiveName;
     char *outInactiveName;
 
-    virBitmapPtr activeVcpus;
-    bool blockjobs;
-
     virQEMUCapsPtr qemuCaps;
 };
 
@@ -108,9 +105,6 @@ testInfoClear(struct testInfo *info)
     VIR_FREE(info->outActiveName);
     VIR_FREE(info->outInactiveName);
 
-    virBitmapFree(info->activeVcpus);
-    info->activeVcpus = NULL;
-
     virObjectUnref(info->qemuCaps);
 }
 
-- 
2.20.1




More information about the libvir-list mailing list