[libosinfo PATCH v2 2/8] tree: Remove not used Tree from _CreateFromLocationAsyncData struct

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



As the OsinfoTree is not used anywhere in our code, let's just remove
it.

Signed-off-by: Fabiano Fidêncio <fidencio@xxxxxxxxxx>
---
 osinfo/osinfo_tree.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/osinfo/osinfo_tree.c b/osinfo/osinfo_tree.c
index b797cb4..c0ec7e4 100644
--- a/osinfo/osinfo_tree.c
+++ b/osinfo/osinfo_tree.c
@@ -38,14 +38,10 @@ struct _CreateFromLocationAsyncData {
     gchar *treeinfo;
 
     GTask *res;
-
-    OsinfoTree *tree;
 };
 
 static void create_from_location_async_data_free(CreateFromLocationAsyncData *data)
 {
-    if (data->tree)
-        g_object_unref(data->tree);
     g_object_unref(data->file);
     g_object_unref(data->res);
 
-- 
2.21.0

_______________________________________________
Libosinfo mailing list
Libosinfo@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libosinfo




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux