mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
virsh: Drop dead variables
The helper function virshSnapshotCreate (formerly vshSnapshotCreate)
has had dead variables since commit a00c37f2
(Sep 2011).
Signed-off-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
parent
d6f97d1338
commit
ec788ac2fe
@ -50,9 +50,6 @@ virshSnapshotCreate(vshControl *ctl, virDomainPtr dom, const char *buffer,
|
|||||||
bool ret = false;
|
bool ret = false;
|
||||||
virDomainSnapshotPtr snapshot;
|
virDomainSnapshotPtr snapshot;
|
||||||
bool halt = false;
|
bool halt = false;
|
||||||
char *doc = NULL;
|
|
||||||
xmlDocPtr xml = NULL;
|
|
||||||
xmlXPathContextPtr ctxt = NULL;
|
|
||||||
const char *name = NULL;
|
const char *name = NULL;
|
||||||
|
|
||||||
snapshot = virDomainSnapshotCreateXML(dom, buffer, flags);
|
snapshot = virDomainSnapshotCreateXML(dom, buffer, flags);
|
||||||
@ -101,10 +98,7 @@ virshSnapshotCreate(vshControl *ctl, virDomainPtr dom, const char *buffer,
|
|||||||
ret = true;
|
ret = true;
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
xmlXPathFreeContext(ctxt);
|
|
||||||
xmlFreeDoc(xml);
|
|
||||||
virshDomainSnapshotFree(snapshot);
|
virshDomainSnapshotFree(snapshot);
|
||||||
VIR_FREE(doc);
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user