diff options
author | Alexander Larsson <alexl@redhat.com> | 2009-12-11 14:08:00 +0100 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2009-12-11 14:08:00 +0100 |
commit | 605cdcc062c77c3badcb03eb0c8f97385b4739a4 (patch) | |
tree | 5e7e2b6e3ca37fb712d9c3642b5a89bce1667bea | |
parent | 877da7dab374c4ae66ee57b7e5c10e672058b523 (diff) | |
download | nautilus-605cdcc062c77c3badcb03eb0c8f97385b4739a4.tar.gz |
Remove nautilus_window_get_pane_from_slot
This is useless, just look at slot->pane
-rw-r--r-- | src/nautilus-window-private.h | 2 | ||||
-rw-r--r-- | 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 e9e01d705..a3f3f4354 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 34d3279c1..911e48673 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) { |