Signed-off-by: Pavel Hrdina <phrdina(a)redhat.com>
---
src/connect.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/src/connect.c b/src/connect.c
index e96294d..cd90939 100644
--- a/src/connect.c
+++ b/src/connect.c
@@ -657,9 +657,6 @@ virtDBusConnectListDomains(GVariant *inArgs,
if (virConnectListAllDomains(connect->connection, &domains, flags) < 0)
return virtDBusUtilSetLastVirtError(error);
- if (!*domains)
- return;
-
g_variant_builder_init(&builder, G_VARIANT_TYPE("ao"));
for (gint i = 0; domains[i]; i++) {
@@ -697,9 +694,6 @@ virtDBusConnectListNetworks(GVariant *inArgs,
if (virConnectListAllNetworks(connect->connection, &networks, flags) < 0)
return virtDBusUtilSetLastVirtError(error);
- if (!*networks)
- return;
-
g_variant_builder_init(&builder, G_VARIANT_TYPE("ao"));
for (gint i = 0; networks[i]; i++) {
--
2.14.3