[nautilus] Remove nautilus_window_get_pane_from_slot



commit 605cdcc062c77c3badcb03eb0c8f97385b4739a4
Author: Alexander Larsson <alexl redhat com>
Date:   Fri Dec 11 14:08:00 2009 +0100

    Remove nautilus_window_get_pane_from_slot
    
    This is useless, just look at slot->pane

 src/nautilus-window-private.h |    2 --
 src/nautilus-window.c         |   23 -----------------------
 2 files changed, 0 insertions(+), 25 deletions(-)
---
diff --git a/src/nautilus-window-private.h b/src/nautilus-window-private.h
index e9e01d7..a3f3f43 100644
--- a/src/nautilus-window-private.h
+++ b/src/nautilus-window-private.h
@@ -206,8 +206,6 @@ gboolean           nautilus_add_to_history_list_no_notify                (GFile
 GList *            nautilus_get_history_list                             (void);
 void               nautilus_window_bookmarks_preference_changed_callback (gpointer           user_data);
 void               nautilus_window_constructed                           (NautilusWindow    *window);
-NautilusWindowPane* nautilus_window_get_pane_from_slot                   (NautilusWindow *window,
-									  NautilusWindowSlot *slot);
 
 
 /* sync window GUI with current slot. Used when changing slots,
diff --git a/src/nautilus-window.c b/src/nautilus-window.c
index 34d3279..911e486 100644
--- a/src/nautilus-window.c
+++ b/src/nautilus-window.c
@@ -1874,29 +1874,6 @@ nautilus_window_get_bookmark_list (NautilusWindowInfo *window)
   return nautilus_get_bookmark_list ();
 }
 
-NautilusWindowPane*
-nautilus_window_get_pane_from_slot (NautilusWindow *window, NautilusWindowSlot *slot)
-{
-	GList *walk, *wSlot;
-
-	/* check active slot on active pane first */
-	if (slot == window->details->active_pane->active_slot) {
-		return window->details->active_pane;
-	}
-	for (walk = window->details->panes; walk; walk = walk->next) {
-		NautilusWindowPane *pane = walk->data;
-		if (pane->active_slot == slot) {
-			return pane;
-		}
-		for (wSlot = pane->slots; wSlot; wSlot = wSlot->next) {
-			if (wSlot->data == slot) {
-				return pane;
-			}
-		}
-	}
-	return NULL;
-}
-
 static char *
 nautilus_window_get_cached_title (NautilusWindow *window)
 {



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