[libgovirt] examples/list-vms: Removed unused ca_cert variable
- From: Christophe Fergeau <teuf src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgovirt] examples/list-vms: Removed unused ca_cert variable
- Date: Mon, 3 Aug 2015 15:56:31 +0000 (UTC)
commit b5259e5d11eee765f239d75fd8cdacdc4ab6b736
Author: Christophe Fergeau <cfergeau redhat com>
Date: Mon Jul 27 19:29:20 2015 +0200
examples/list-vms: Removed unused ca_cert variable
We read OvirtProxy::ca-cert but never do anything with it, so this can
be removed.
examples/list-vms.c | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/examples/list-vms.c b/examples/list-vms.c
index 6df8d8b..6737c64 100644
--- a/examples/list-vms.c
+++ b/examples/list-vms.c
@@ -99,7 +99,6 @@ int main(int argc, char **argv)
OvirtApi *api;
OvirtProxy *proxy = NULL;
GError *error = NULL;
- GByteArray *ca_cert = NULL;
g_type_init();
@@ -124,7 +123,6 @@ int main(int argc, char **argv)
g_debug("failed to get CA certificate: %s", error->message);
goto error;
}
- g_object_get(G_OBJECT(proxy), "ca-cert", &ca_cert, NULL);
api = ovirt_proxy_fetch_api(proxy, &error);
if (error != NULL) {
@@ -138,8 +136,6 @@ int main(int argc, char **argv)
error:
- if (ca_cert != NULL)
- g_byte_array_unref(ca_cert);
if (error != NULL)
g_error_free(error);
if (proxy != NULL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]