aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-11-19 22:42:55 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-11-20 03:50:56 +0800
commitd43e7ac92af0ac35c86e874279e6439df7ecc4e0 (patch)
treed28d9c9b796c87d215364c0e7e7bbe00705551eb
parent59f124ac280124f0723dfef9d679c10c90792a74 (diff)
downloadgsoc2013-evolution-d43e7ac92af0ac35c86e874279e6439df7ecc4e0.tar
gsoc2013-evolution-d43e7ac92af0ac35c86e874279e6439df7ecc4e0.tar.gz
gsoc2013-evolution-d43e7ac92af0ac35c86e874279e6439df7ecc4e0.tar.bz2
gsoc2013-evolution-d43e7ac92af0ac35c86e874279e6439df7ecc4e0.tar.lz
gsoc2013-evolution-d43e7ac92af0ac35c86e874279e6439df7ecc4e0.tar.xz
gsoc2013-evolution-d43e7ac92af0ac35c86e874279e6439df7ecc4e0.tar.zst
gsoc2013-evolution-d43e7ac92af0ac35c86e874279e6439df7ecc4e0.zip
Remove em_folder_tree_model_lookup_uri().
No longer used.
-rw-r--r--mail/em-folder-tree-model.c46
-rw-r--r--mail/em-folder-tree-model.h4
2 files changed, 0 insertions, 50 deletions
diff --git a/mail/em-folder-tree-model.c b/mail/em-folder-tree-model.c
index 7b2bf8b37c..bbf1824297 100644
--- a/mail/em-folder-tree-model.c
+++ b/mail/em-folder-tree-model.c
@@ -1349,52 +1349,6 @@ em_folder_tree_model_lookup_store_info (EMFolderTreeModel *model,
return g_hash_table_lookup (model->priv->store_index, store);
}
-GtkTreeRowReference *
-em_folder_tree_model_lookup_uri (EMFolderTreeModel *model,
- const gchar *folder_uri)
-{
- GtkTreeRowReference *reference = NULL;
- EMFolderTreeModelStoreInfo *si;
- EMailSession *session;
- CamelStore *store = NULL;
- gchar *folder_name = NULL;
- GError *error = NULL;
-
- g_return_val_if_fail (EM_IS_FOLDER_TREE_MODEL (model), NULL);
- g_return_val_if_fail (folder_uri != NULL, NULL);
-
- session = em_folder_tree_model_get_session (model);
- g_return_val_if_fail (E_IS_MAIL_SESSION (session), NULL);
-
- e_mail_folder_uri_parse (
- CAMEL_SESSION (session),
- folder_uri, &store, &folder_name, &error);
-
- if (error != NULL) {
- g_warn_if_fail (store == NULL);
- g_warn_if_fail (folder_name == NULL);
- g_warning ("%s: %s", G_STRFUNC, error->message);
- g_error_free (error);
- return NULL;
- }
-
- g_return_val_if_fail (CAMEL_IS_STORE (store), NULL);
- g_return_val_if_fail (folder_name != NULL, NULL);
-
- si = g_hash_table_lookup (model->priv->store_index, store);
-
- if (si != NULL)
- reference = g_hash_table_lookup (si->full_hash, folder_name);
-
- if (!gtk_tree_row_reference_valid (reference))
- reference = NULL;
-
- g_object_unref (store);
- g_free (folder_name);
-
- return reference;
-}
-
/**
* em_folder_tree_model_get_row_reference:
* @model: an #EMFolderTreeModel
diff --git a/mail/em-folder-tree-model.h b/mail/em-folder-tree-model.h
index 5785af6bdf..af5fbe1dc7 100644
--- a/mail/em-folder-tree-model.h
+++ b/mail/em-folder-tree-model.h
@@ -154,10 +154,6 @@ EMFolderTreeModelStoreInfo *
(EMFolderTreeModel *model,
CamelStore *store);
GtkTreeRowReference *
- em_folder_tree_model_lookup_uri
- (EMFolderTreeModel *model,
- const gchar *folder_uri);
-GtkTreeRowReference *
em_folder_tree_model_get_row_reference
(EMFolderTreeModel *model,
CamelStore *store,