mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-28 11:21:44 +03:00
virDomainDefNamespaceParse: remove unused attributes
Neither the xmlDocPtr nor the root xmlNode (also passed in the XPathContext) are interesting to the callees. Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
This commit is contained in:
parent
d6943eab14
commit
991dcd9f5f
@ -196,9 +196,7 @@ bhyveDomainDefNamespaceFree(void *nsdata)
|
||||
}
|
||||
|
||||
static int
|
||||
bhyveDomainDefNamespaceParse(xmlDocPtr xml ATTRIBUTE_UNUSED,
|
||||
xmlNodePtr root ATTRIBUTE_UNUSED,
|
||||
xmlXPathContextPtr ctxt,
|
||||
bhyveDomainDefNamespaceParse(xmlXPathContextPtr ctxt,
|
||||
void **data)
|
||||
{
|
||||
bhyveDomainCmdlineDefPtr cmd = NULL;
|
||||
|
@ -182,8 +182,7 @@ struct _virCapsStoragePool {
|
||||
};
|
||||
|
||||
|
||||
typedef int (*virDomainDefNamespaceParse)(xmlDocPtr, xmlNodePtr,
|
||||
xmlXPathContextPtr, void **);
|
||||
typedef int (*virDomainDefNamespaceParse)(xmlXPathContextPtr, void **);
|
||||
typedef void (*virDomainDefNamespaceFree)(void *);
|
||||
typedef int (*virDomainDefNamespaceXMLFormat)(virBufferPtr, void *);
|
||||
typedef const char *(*virDomainDefNamespaceHref)(void);
|
||||
|
@ -19643,7 +19643,7 @@ virDomainMemorytuneDefParse(virDomainDefPtr def,
|
||||
|
||||
static virDomainDefPtr
|
||||
virDomainDefParseXML(xmlDocPtr xml,
|
||||
xmlNodePtr root,
|
||||
xmlNodePtr root ATTRIBUTE_UNUSED,
|
||||
xmlXPathContextPtr ctxt,
|
||||
virCapsPtr caps,
|
||||
virDomainXMLOptionPtr xmlopt,
|
||||
@ -21345,7 +21345,7 @@ virDomainDefParseXML(xmlDocPtr xml,
|
||||
def->ns = xmlopt->ns;
|
||||
|
||||
if (def->ns.parse &&
|
||||
(def->ns.parse)(xml, root, ctxt, &def->namespaceData) < 0)
|
||||
(def->ns.parse)(ctxt, &def->namespaceData) < 0)
|
||||
goto error;
|
||||
|
||||
return def;
|
||||
|
@ -207,9 +207,7 @@ lxcDomainDefNamespaceFree(void *nsdata)
|
||||
}
|
||||
|
||||
static int
|
||||
lxcDomainDefNamespaceParse(xmlDocPtr xml ATTRIBUTE_UNUSED,
|
||||
xmlNodePtr root ATTRIBUTE_UNUSED,
|
||||
xmlXPathContextPtr ctxt,
|
||||
lxcDomainDefNamespaceParse(xmlXPathContextPtr ctxt,
|
||||
void **data)
|
||||
{
|
||||
lxcDomainDefPtr lxcDef = NULL;
|
||||
|
@ -3626,9 +3626,7 @@ qemuDomainDefNamespaceParseCaps(qemuDomainXmlNsDefPtr nsdef,
|
||||
|
||||
|
||||
static int
|
||||
qemuDomainDefNamespaceParse(xmlDocPtr xml ATTRIBUTE_UNUSED,
|
||||
xmlNodePtr root ATTRIBUTE_UNUSED,
|
||||
xmlXPathContextPtr ctxt,
|
||||
qemuDomainDefNamespaceParse(xmlXPathContextPtr ctxt,
|
||||
void **data)
|
||||
{
|
||||
qemuDomainXmlNsDefPtr nsdata = NULL;
|
||||
|
@ -198,9 +198,7 @@ testDomainDefNamespaceFree(void *data)
|
||||
}
|
||||
|
||||
static int
|
||||
testDomainDefNamespaceParse(xmlDocPtr xml ATTRIBUTE_UNUSED,
|
||||
xmlNodePtr root ATTRIBUTE_UNUSED,
|
||||
xmlXPathContextPtr ctxt,
|
||||
testDomainDefNamespaceParse(xmlXPathContextPtr ctxt,
|
||||
void **data)
|
||||
{
|
||||
testDomainNamespaceDefPtr nsdata = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user