]> git.saurik.com Git - wxWidgets.git/commitdiff
remove instance init function, memory is already zeroed
authorPaul Cornett <paulcor@bullseye.com>
Sat, 6 Jul 2013 15:50:57 +0000 (15:50 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Sat, 6 Jul 2013 15:50:57 +0000 (15:50 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74417 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/treeentry_gtk.c

index 191c563764829c6301a2c1efead26daa9f248b5b..6955a126caa184e3846cb5e1d0ebbd1be61707e1 100644 (file)
@@ -33,7 +33,6 @@ typedef pid_t GPid;
 
 /* forwards */
 static void gtk_tree_entry_class_init(void* g_class, void* class_data);
-static void gtk_tree_entry_init (GTypeInstance* instance, gpointer g_class);
 static void gtk_tree_entry_string_transform_func(const GValue *src_value,
                                                  GValue *dest_value);
 static void gtk_tree_entry_dispose(GObject* obj);
@@ -64,7 +63,7 @@ gtk_tree_entry_get_type ()
             NULL,           /* class_data */
             sizeof (GtkTreeEntry),
             16,             /* n_preallocs */
-            (GInstanceInitFunc) gtk_tree_entry_init, /*instance_init*/
+            NULL,           /* instance_init */
             NULL            /* value_table */
         };
         tree_entry_type = g_type_register_static (G_TYPE_OBJECT, "GtkTreeEntry",
@@ -138,18 +137,6 @@ static void gtk_tree_entry_class_init(void* g_class, void* class_data)
     parent_class = G_OBJECT_CLASS(g_type_class_peek_parent(g_class));
 }
 
-static void gtk_tree_entry_init (GTypeInstance* instance, gpointer g_class)
-{
-    GtkTreeEntry* entry = (GtkTreeEntry*) instance;
-
-    /* clear */
-    entry->label = NULL;
-    entry->collate_key = NULL;
-    entry->userdata = NULL;
-    entry->destroy_func_data = NULL;
-    entry->destroy_func = NULL;
-}
-
 static void gtk_tree_entry_string_transform_func(const GValue *src_value,
                                                  GValue *dest_value)
 {