summaryrefslogtreecommitdiff
path: root/src/caja-window-manage-views.c
diff options
context:
space:
mode:
authormonsta <[email protected]>2017-01-06 12:20:45 +0300
committermonsta <[email protected]>2017-01-06 12:20:45 +0300
commit325be72a116c40c83a4803b2ade015352ac556ac (patch)
tree02aca1496bf8cb5ffb1e66112feb8cf41d66a3eb /src/caja-window-manage-views.c
parenta0b0cb68df1450ed735b546e605175a85602d3ae (diff)
downloadcaja-325be72a116c40c83a4803b2ade015352ac556ac.tar.bz2
caja-325be72a116c40c83a4803b2ade015352ac556ac.tar.xz
remove some unused code that's also gone upstream
Diffstat (limited to 'src/caja-window-manage-views.c')
-rw-r--r--src/caja-window-manage-views.c46
1 files changed, 0 insertions, 46 deletions
diff --git a/src/caja-window-manage-views.c b/src/caja-window-manage-views.c
index e25a0ba0..86c50ab8 100644
--- a/src/caja-window-manage-views.c
+++ b/src/caja-window-manage-views.c
@@ -271,39 +271,6 @@ handle_go_forward (CajaNavigationWindowSlot *navigation_slot,
g_list_free_1 (link);
}
-static void
-handle_go_elsewhere (CajaWindowSlot *slot, GFile *location)
-{
-#if !NEW_UI_COMPLETE
- CajaNavigationWindowSlot *navigation_slot;
-
- if (CAJA_IS_NAVIGATION_WINDOW_SLOT (slot))
- {
- navigation_slot = CAJA_NAVIGATION_WINDOW_SLOT (slot);
-
- /* Clobber the entire forward list, and move displayed location to back list */
- caja_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
caja_window_update_up_button (CajaWindow *window)
{
@@ -455,7 +422,6 @@ update_history (CajaWindowSlot *slot,
case CAJA_LOCATION_CHANGE_STANDARD:
case CAJA_LOCATION_CHANGE_FALLBACK:
caja_window_slot_add_current_location_to_history_list (slot);
- handle_go_elsewhere (slot, new_location);
return;
case CAJA_LOCATION_CHANGE_RELOAD:
/* for reload there is no work to do */
@@ -773,18 +739,6 @@ caja_window_slot_go_home (CajaWindowSlot *slot, gboolean new_tab)
g_object_unref (home);
}
-#if 0
-static char *
-caja_window_slot_get_view_label (CajaWindowSlot *slot)
-{
- const CajaViewInfo *info;
-
- info = caja_view_factory_lookup (caja_window_slot_get_content_view_id (slot));
-
- return g_strdup (info->label);
-}
-#endif
-
static char *
caja_window_slot_get_view_error_label (CajaWindowSlot *slot)
{