[gom] resource: Remove unused and leaked hashtable



commit 65374efcb8f57347946bf20f33f3c8a7a65351f7
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Aug 25 15:38:52 2015 +0200

    resource: Remove unused and leaked hashtable
    
    Spotted by Victor Toso.

 gom/gom-resource.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/gom/gom-resource.c b/gom/gom-resource.c
index b5dc50a..4e6a521 100644
--- a/gom/gom-resource.c
+++ b/gom/gom-resource.c
@@ -43,7 +43,6 @@ enum
 };
 
 static GParamSpec *gParamSpecs[LAST_PROP];
-static GHashTable *gPropMaps;
 
 void
 gom_resource_class_set_primary_key (GomResourceClass *resource_class,
@@ -1051,9 +1050,6 @@ gom_resource_class_init (GomResourceClass *klass)
    object_class->set_property = gom_resource_set_property;
    g_type_class_add_private(object_class, sizeof(GomResourcePrivate));
 
-   gPropMaps = g_hash_table_new_full(g_direct_hash, g_direct_equal, NULL,
-                                     (GDestroyNotify)g_hash_table_destroy);
-
    gParamSpecs[PROP_REPOSITORY] =
       g_param_spec_object("repository",
                           _("Repository"),


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