mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-04 21:35:45 +00:00
test: Drop unused attribute @path from testDriver struct
It's filled and then freed, but not used anywhere else.
This commit is contained in:
parent
81be22617f
commit
64eaac81e5
@ -95,7 +95,6 @@ typedef struct _testAuth *testAuthPtr;
|
|||||||
struct _testDriver {
|
struct _testDriver {
|
||||||
virMutex lock;
|
virMutex lock;
|
||||||
|
|
||||||
char *path;
|
|
||||||
int nextDomID;
|
int nextDomID;
|
||||||
virCapsPtr caps;
|
virCapsPtr caps;
|
||||||
virDomainXMLOptionPtr xmlopt;
|
virDomainXMLOptionPtr xmlopt;
|
||||||
@ -149,7 +148,6 @@ testDriverFree(testDriverPtr driver)
|
|||||||
virInterfaceObjListFree(&driver->ifaces);
|
virInterfaceObjListFree(&driver->ifaces);
|
||||||
virStoragePoolObjListFree(&driver->pools);
|
virStoragePoolObjListFree(&driver->pools);
|
||||||
virObjectEventStateFree(driver->eventState);
|
virObjectEventStateFree(driver->eventState);
|
||||||
VIR_FREE(driver->path);
|
|
||||||
virMutexUnlock(&driver->lock);
|
virMutexUnlock(&driver->lock);
|
||||||
virMutexDestroy(&driver->lock);
|
virMutexDestroy(&driver->lock);
|
||||||
|
|
||||||
@ -1434,8 +1432,6 @@ testOpenFromFile(virConnectPtr conn, const char *file)
|
|||||||
}
|
}
|
||||||
|
|
||||||
privconn->numCells = 0;
|
privconn->numCells = 0;
|
||||||
if (VIR_STRDUP(privconn->path, file) < 0)
|
|
||||||
goto error;
|
|
||||||
memmove(&privconn->nodeInfo, &defaultNodeInfo, sizeof(defaultNodeInfo));
|
memmove(&privconn->nodeInfo, &defaultNodeInfo, sizeof(defaultNodeInfo));
|
||||||
|
|
||||||
if (testParseNodeInfo(&privconn->nodeInfo, ctxt) < 0)
|
if (testParseNodeInfo(&privconn->nodeInfo, ctxt) < 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user