[PATCH v2 06/15] test: Drop unused attribute @path from testDriver struct

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It's filled and then freed, but not used anywhere else.
---
 src/test/test_driver.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/src/test/test_driver.c b/src/test/test_driver.c
index c68b3d6..f105055 100644
--- a/src/test/test_driver.c
+++ b/src/test/test_driver.c
@@ -95,7 +95,6 @@ typedef struct _testAuth *testAuthPtr;
 struct _testDriver {
     virMutex lock;

-    char *path;
     int nextDomID;
     virCapsPtr caps;
     virDomainXMLOptionPtr xmlopt;
@@ -149,7 +148,6 @@ testDriverFree(testDriverPtr driver)
     virInterfaceObjListFree(&driver->ifaces);
     virStoragePoolObjListFree(&driver->pools);
     virObjectEventStateFree(driver->eventState);
-    VIR_FREE(driver->path);
     virMutexUnlock(&driver->lock);
     virMutexDestroy(&driver->lock);

@@ -1434,8 +1432,6 @@ testOpenFromFile(virConnectPtr conn, const char *file)
     }

     privconn->numCells = 0;
-    if (VIR_STRDUP(privconn->path, file) < 0)
-        goto error;
     memmove(&privconn->nodeInfo, &defaultNodeInfo, sizeof(defaultNodeInfo));

     if (testParseNodeInfo(&privconn->nodeInfo, ctxt) < 0)
-- 
2.4.1

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



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]