[evolution/wip/gsettings] Remove em_folder_tree_get_selected_folder_info().



commit 7a19800b3827e5437c0cb2e0865442cf7c178f20
Author: Matthew Barnes <mbarnes redhat com>
Date:   Fri May 6 12:36:28 2011 -0400

    Remove em_folder_tree_get_selected_folder_info().
    
    Function is no longer used, or wanted.

 mail/em-folder-tree.c |   42 ------------------------------------------
 mail/em-folder-tree.h |    3 ---
 2 files changed, 0 insertions(+), 45 deletions(-)
---
diff --git a/mail/em-folder-tree.c b/mail/em-folder-tree.c
index de1eed8..95aa6b8 100644
--- a/mail/em-folder-tree.c
+++ b/mail/em-folder-tree.c
@@ -3099,48 +3099,6 @@ em_folder_tree_get_selected_folder (EMFolderTree *folder_tree)
 	return folder;
 }
 
-CamelFolderInfo *
-em_folder_tree_get_selected_folder_info (EMFolderTree *folder_tree)
-{
-	GtkTreeView *tree_view;
-	GtkTreeSelection *selection;
-	GtkTreeModel *model;
-	GtkTreeIter iter;
-	gchar *full_name = NULL, *name = NULL, *uri = NULL;
-	CamelStore *store = NULL;
-	CamelFolderInfo *fi = NULL;
-
-	g_return_val_if_fail (EM_IS_FOLDER_TREE (folder_tree), NULL);
-
-	tree_view = GTK_TREE_VIEW (folder_tree);
-	selection = gtk_tree_view_get_selection (tree_view);
-
-	if (gtk_tree_selection_get_selected (selection, &model, &iter))
-		gtk_tree_model_get (
-			model, &iter,
-			COL_POINTER_CAMEL_STORE, &store,
-			COL_STRING_FULL_NAME, &full_name,
-			COL_STRING_DISPLAY_NAME, &name,
-			COL_STRING_URI, &uri, -1);
-
-	fi = camel_folder_info_new ();
-	fi->full_name = g_strdup (full_name);
-	fi->uri = g_strdup (uri);
-	fi->name = g_strdup (name);
-
-	if (!fi->full_name)
-		goto done;
-
-	g_free (fi->name);
-	if (!g_ascii_strcasecmp (fi->full_name, "INBOX"))
-		fi->name = g_strdup (_("Inbox"));
-	else
-		fi->name = g_strdup (name);
-
-done:
-	return fi;
-}
-
 EAccount *
 em_folder_tree_get_selected_account (EMFolderTree *folder_tree)
 {
diff --git a/mail/em-folder-tree.h b/mail/em-folder-tree.h
index 4cb032b..f0f89e9 100644
--- a/mail/em-folder-tree.h
+++ b/mail/em-folder-tree.h
@@ -120,9 +120,6 @@ gchar *		em_folder_tree_get_selected_uri	(EMFolderTree *folder_tree);
 gchar *		em_folder_tree_get_selected_path (EMFolderTree *folder_tree);
 CamelFolder *	em_folder_tree_get_selected_folder
 						(EMFolderTree *folder_tree);
-CamelFolderInfo *
-		em_folder_tree_get_selected_folder_info
-						(EMFolderTree *folder_tree);
 EAccount *	em_folder_tree_get_selected_account
 						(EMFolderTree *folder_tree);
 gboolean	em_folder_tree_create_folder	(EMFolderTree *folder_tree,



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