[goobox] removed unused window_list



commit b0313876dc4dde1d04f6a38b997df6ed06171044
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Sat Jun 2 21:36:56 2012 +0200

    removed unused window_list

 src/goo-window.c |    3 ---
 src/gth-window.c |   27 ---------------------------
 2 files changed, 0 insertions(+), 30 deletions(-)
---
diff --git a/src/goo-window.c b/src/goo-window.c
index 19faa83..e3110a6 100644
--- a/src/goo-window.c
+++ b/src/goo-window.c
@@ -123,7 +123,6 @@ enum {
 
 static guint goo_window_signals[LAST_SIGNAL] = { 0 };
 static int icon_size = 0;
-GList *window_list = NULL;
 
 
 enum {
@@ -2634,8 +2633,6 @@ goo_window_new (BraseroDrive *drive)
 	window = (GooWindow*) g_object_new (GOO_TYPE_WINDOW, NULL);
 	goo_window_construct (window, drive);
 
-	window_list = g_list_prepend (window_list, window);
-
 	return (GtkWidget *) window;
 }
 
diff --git a/src/gth-window.c b/src/gth-window.c
index 7df049e..a281521 100644
--- a/src/gth-window.c
+++ b/src/gth-window.c
@@ -36,7 +36,6 @@ enum  {
 
 
 static GtkWindowClass *parent_class = NULL;
-static GList *window_list = NULL;
 
 
 struct _GthWindowPrivate {
@@ -203,8 +202,6 @@ gth_window_init (GthWindow *window)
 	window->priv->menubar = NULL;
 	window->priv->toolbar = NULL;
 	window->priv->statusbar = NULL;
-
-	window_list = g_list_prepend (window_list, window);
 }
 
 
@@ -366,27 +363,3 @@ gth_window_show_only_content (GthWindow *window,
 		show_widget (window->priv->statusbar);
 	}
 }
-
-
-int
-gth_window_get_n_windows (void)
-{
-	return g_list_length (window_list);
-}
-
-
-GList *
-gth_window_get_window_list (void)
-{
-	return window_list;
-}
-
-
-GtkWidget *
-gth_window_get_current_window (void)
-{
-	if ((window_list == NULL) || (g_list_length (window_list) > 1))
-		return NULL;
-	else
-		return (GtkWidget *) window_list->data;
-}



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