[libvirt] [PATCH] tests: Drop unnecessary variables

Andrea Bolognani posted 1 patch 5 years ago
Test syntax-check passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/20190312131052.21943-1-abologna@redhat.com
tests/qemuxml2xmltest.c | 6 ------
1 file changed, 6 deletions(-)
[libvirt] [PATCH] tests: Drop unnecessary variables
Posted by Andrea Bolognani 5 years ago
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@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

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list