From 325be72a116c40c83a4803b2ade015352ac556ac Mon Sep 17 00:00:00 2001 From: monsta Date: Fri, 6 Jan 2017 12:20:45 +0300 Subject: remove some unused code that's also gone upstream --- src/caja-pathbar.c | 102 +---------------------------------------------------- 1 file changed, 1 insertion(+), 101 deletions(-) (limited to 'src/caja-pathbar.c') diff --git a/src/caja-pathbar.c b/src/caja-pathbar.c index 322865a5..bafd8e66 100644 --- a/src/caja-pathbar.c +++ b/src/caja-pathbar.c @@ -1336,47 +1336,6 @@ button_clicked_cb (GtkWidget *button, g_signal_emit (path_bar, path_bar_signals [PATH_CLICKED], 0, button_data->path); } -static CajaIconInfo * -get_custom_user_icon_info (ButtonData *button_data) -{ - /* Bug 80925: With tiny display sizes we get huge memory allocations. */ -#if 0 - CajaIconInfo *icon_info; - GFile *icon_file; - GIcon *icon; - char *custom_icon_uri; - - icon = NULL; - - if (button_data->file != NULL) - { - custom_icon_uri = caja_file_get_custom_icon (button_data->file); - if (custom_icon_uri != NULL) - { - icon_file = g_file_new_for_uri (custom_icon_uri); - - if (g_file_is_native (icon_file)) - { - icon = g_file_icon_new (icon_file); - } - - g_object_unref (icon_file); - g_free (custom_icon_uri); - } - } - - if (icon != NULL) - { - icon_info = caja_icon_info_lookup (icon, CAJA_PATH_BAR_ICON_SIZE); - g_object_unref (icon); - - return icon_info; - } -#endif - - return NULL; -} - static CajaIconInfo * get_type_icon_info (ButtonData *button_data) { @@ -1511,12 +1470,7 @@ caja_path_bar_update_button_appearance (ButtonData *button_data) } else { - icon_info = get_custom_user_icon_info (button_data); - if (icon_info == NULL) - { - icon_info = get_type_icon_info (button_data); - } - + icon_info = get_type_icon_info (button_data); pixbuf = NULL; if (icon_info != NULL) @@ -2150,60 +2104,6 @@ caja_path_bar_get_path_for_button (CajaPathBar *path_bar, return NULL; } -/** - * _caja_path_bar_up: - * @path_bar: a #CajaPathBar - * - * If the selected button in the pathbar is not the furthest button "up" (in the - * root direction), act as if the user clicked on the next button up. - **/ -void -caja_path_bar_up (CajaPathBar *path_bar) -{ - GList *l; - - for (l = path_bar->button_list; l; l = l->next) - { - GtkWidget *button = BUTTON_DATA (l->data)->button; - if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (button))) - { - if (l->next) - { - GtkWidget *next_button = BUTTON_DATA (l->next->data)->button; - button_clicked_cb (next_button, l->next->data); - } - break; - } - } -} - -/** - * _caja_path_bar_down: - * @path_bar: a #CajaPathBar - * - * If the selected button in the pathbar is not the furthest button "down" (in the - * leaf direction), act as if the user clicked on the next button down. - **/ -void -caja_path_bar_down (CajaPathBar *path_bar) -{ - GList *l; - - for (l = path_bar->button_list; l; l = l->next) - { - GtkWidget *button = BUTTON_DATA (l->data)->button; - if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (button))) - { - if (l->prev) - { - GtkWidget *prev_button = BUTTON_DATA (l->prev->data)->button; - button_clicked_cb (prev_button, l->prev->data); - } - break; - } - } -} - GtkWidget * caja_path_bar_get_button_from_button_list_entry (gpointer entry) { -- cgit v1.2.1