some compilation fixes
[lttv.git] / ltt / branches / poly / lttv / modules / gui / lttvwindow / lttvwindow / init_module.c
index a6d63cb348aeaec6ef9570ee54327c30a4336932..7faf99edfa0bc1b68912f4ca2f87946c92a13703 100644 (file)
@@ -119,37 +119,13 @@ static void init() {
 
 }
 
-void
-main_window_free(MainWindow * mw)
-{ 
-  if(mw){
-    while(mw->tab){
-      lttv_state_remove_event_hooks(
-           (LttvTracesetState*)mw->tab->traceset_info->traceset_context);
-      mw->tab = mw->tab->next;
-    }
-    g_object_unref(mw->attributes);
-    g_main_window_list = g_slist_remove(g_main_window_list, mw);
-
-    g_hash_table_destroy(mw->hash_menu_item);
-    g_hash_table_destroy(mw->hash_toolbar_item);
-    
-    g_free(mw);
-    mw = NULL;
-  }
-}
-
 void
 main_window_destructor(MainWindow * mw)
 {
   if(GTK_IS_WIDGET(mw->mwindow)){
     gtk_widget_destroy(mw->mwindow);
-    //    gtk_widget_destroy(mw->HelpContents);
-    //    gtk_widget_destroy(mw->AboutBox);    
     mw = NULL;
   }
-  //main_window_free called when the object mw in the widget is unref.
-  //main_window_free(mw);
 }
 
 
This page took 0.023755 seconds and 4 git commands to generate.