]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
test: Drop unused attribute @path from testDriver struct
authorPeter Krempa <pkrempa@redhat.com>
Wed, 24 Jun 2015 09:25:44 +0000 (11:25 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 25 Jun 2015 12:09:48 +0000 (14:09 +0200)
It's filled and then freed, but not used anywhere else.

src/test/test_driver.c

index c68b3d64a378249f731f4d9bbc8976c1eba9f459..f1050555aa1a35bebb0613a870fa5969c3e23be1 100644 (file)
@@ -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)