[nautilus/refactor: 7/26] window-slot: remove commented out code
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/refactor: 7/26] window-slot: remove commented out code
- Date: Wed, 29 Dec 2010 17:58:03 +0000 (UTC)
commit 58eb687a50a5fb33df0d4166afce8de4beb1e306
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Tue Dec 21 19:29:31 2010 +0100
window-slot: remove commented out code
src/nautilus-window-manage-views.c | 43 ------------------------------------
src/nautilus-window-slot.h | 2 -
2 files changed, 0 insertions(+), 45 deletions(-)
---
diff --git a/src/nautilus-window-manage-views.c b/src/nautilus-window-manage-views.c
index 56e5329..b4a6fce 100644
--- a/src/nautilus-window-manage-views.c
+++ b/src/nautilus-window-manage-views.c
@@ -261,36 +261,6 @@ handle_go_forward (NautilusNavigationWindowSlot *navigation_slot,
g_list_free_1 (link);
}
-static void
-handle_go_elsewhere (NautilusWindowSlot *slot, GFile *location)
-{
-#if !NEW_UI_COMPLETE
- NautilusNavigationWindowSlot *navigation_slot;
-
- if (NAUTILUS_IS_NAVIGATION_WINDOW_SLOT (slot)) {
- navigation_slot = NAUTILUS_NAVIGATION_WINDOW_SLOT (slot);
-
- /* Clobber the entire forward list, and move displayed location to back list */
- nautilus_navigation_window_slot_clear_forward_list (navigation_slot);
-
- if (slot->location != NULL) {
- /* If we're returning to the same uri somehow, don't put this uri on back list.
- * This also avoids a problem where set_displayed_location
- * didn't update last_location_bookmark since the uri didn't change.
- */
- if (!g_file_equal (slot->location, location)) {
- /* Store bookmark for current location in back list, unless there is no current location */
- check_last_bookmark_location_matches_slot (slot);
- /* Use the first bookmark in the history list rather than creating a new one. */
- navigation_slot->back_list = g_list_prepend (navigation_slot->back_list,
- slot->last_location_bookmark);
- g_object_ref (navigation_slot->back_list->data);
- }
- }
- }
-#endif
-}
-
void
nautilus_window_update_up_button (NautilusWindow *window)
{
@@ -422,7 +392,6 @@ update_history (NautilusWindowSlot *slot,
case NAUTILUS_LOCATION_CHANGE_STANDARD:
case NAUTILUS_LOCATION_CHANGE_FALLBACK:
nautilus_window_slot_add_current_location_to_history_list (slot);
- handle_go_elsewhere (slot, new_location);
return;
case NAUTILUS_LOCATION_CHANGE_RELOAD:
/* for reload there is no work to do */
@@ -684,18 +653,6 @@ nautilus_window_slot_go_home (NautilusWindowSlot *slot, gboolean new_tab)
g_object_unref (home);
}
-#if 0
-static char *
-nautilus_window_slot_get_view_label (NautilusWindowSlot *slot)
-{
- const NautilusViewInfo *info;
-
- info = nautilus_view_factory_lookup (nautilus_window_slot_get_content_view_id (slot));
-
- return g_strdup (info->label);
-}
-#endif
-
static char *
nautilus_window_slot_get_view_error_label (NautilusWindowSlot *slot)
{
diff --git a/src/nautilus-window-slot.h b/src/nautilus-window-slot.h
index f0d2411..89d4ad7 100644
--- a/src/nautilus-window-slot.h
+++ b/src/nautilus-window-slot.h
@@ -163,8 +163,6 @@ gboolean nautilus_window_slot_content_view_matches_iid (NautilusWindowSlot *slo
void nautilus_window_slot_go_home (NautilusWindowSlot *slot,
gboolean new_tab);
-void nautilus_window_slot_go_up (NautilusWindowSlot *slot,
- gboolean close_behind);
void nautilus_window_slot_set_content_view_widget (NautilusWindowSlot *slot,
NautilusView *content_view);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]