virsh-network: Drop unused variables in cmdNetworkMetadata()

In one of recent commits two variable were introduced (@ctxt and
@doc) that are not used. This breaks a build with clang who's
able to identify that.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Michal Privoznik 2023-08-25 13:22:59 +02:00
parent 275d1520a4
commit 5912de7189

View File

@ -597,7 +597,6 @@ static bool
cmdNetworkMetadata(vshControl *ctl, const vshCmd *cmd) cmdNetworkMetadata(vshControl *ctl, const vshCmd *cmd)
{ {
g_autoptr(virshNetwork) net = NULL; g_autoptr(virshNetwork) net = NULL;
g_autoptr(xmlXPathContext) ctxt = NULL;
bool config = vshCommandOptBool(cmd, "config"); bool config = vshCommandOptBool(cmd, "config");
bool live = vshCommandOptBool(cmd, "live"); bool live = vshCommandOptBool(cmd, "live");
bool current = vshCommandOptBool(cmd, "current"); bool current = vshCommandOptBool(cmd, "current");
@ -661,7 +660,7 @@ cmdNetworkMetadata(vshControl *ctl, const vshCmd *cmd)
vshPrintExtra(ctl, "%s\n", _("Metadata modified")); vshPrintExtra(ctl, "%s\n", _("Metadata modified"));
} else { } else {
g_autofree char *data = NULL; g_autofree char *data = NULL;
g_autoptr(xmlDoc) doc = NULL;
/* get */ /* get */
if (!(data = virNetworkGetMetadata(net, VIR_NETWORK_METADATA_ELEMENT, if (!(data = virNetworkGetMetadata(net, VIR_NETWORK_METADATA_ELEMENT,
uri, flags))) uri, flags)))