aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-05-30 01:50:16 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-06-30 00:42:21 +0800
commit8055965328e7bb59c0cc23d3030b89025999f5aa (patch)
tree986f6cbfb0775a59c3a1c273b9113b73e4fda1aa /mail
parent96947a0bcf6b93cb5f32e7e91a53129ff8a2b44e (diff)
downloadgsoc2013-evolution-8055965328e7bb59c0cc23d3030b89025999f5aa.tar
gsoc2013-evolution-8055965328e7bb59c0cc23d3030b89025999f5aa.tar.gz
gsoc2013-evolution-8055965328e7bb59c0cc23d3030b89025999f5aa.tar.bz2
gsoc2013-evolution-8055965328e7bb59c0cc23d3030b89025999f5aa.tar.lz
gsoc2013-evolution-8055965328e7bb59c0cc23d3030b89025999f5aa.tar.xz
gsoc2013-evolution-8055965328e7bb59c0cc23d3030b89025999f5aa.tar.zst
gsoc2013-evolution-8055965328e7bb59c0cc23d3030b89025999f5aa.zip
Remove em_utils_folder_name_from_uri().
Diffstat (limited to 'mail')
-rw-r--r--mail/em-utils.c25
-rw-r--r--mail/em-utils.h3
2 files changed, 0 insertions, 28 deletions
diff --git a/mail/em-utils.c b/mail/em-utils.c
index 9e8dec8547..73c4d9be61 100644
--- a/mail/em-utils.c
+++ b/mail/em-utils.c
@@ -1430,31 +1430,6 @@ em_utils_empty_trash (GtkWidget *parent,
mail_empty_trash (session, NULL, NULL, NULL);
}
-gchar *
-em_utils_folder_name_from_uri (const gchar *uri)
-{
- CamelURL *url;
- gchar *folder_name = NULL;
-
- if (uri == NULL || (url = camel_url_new (uri, NULL)) == NULL)
- return NULL;
-
- if (url->fragment)
- folder_name = url->fragment;
- else if (url->path)
- folder_name = url->path + 1;
-
- if (folder_name == NULL) {
- camel_url_free (url);
- return NULL;
- }
-
- folder_name = g_strdup (folder_name);
- camel_url_free (url);
-
- return folder_name;
-}
-
/* ********************************************************************** */
/* runs sync, in main thread */
diff --git a/mail/em-utils.h b/mail/em-utils.h
index 5787b4e290..c516f15291 100644
--- a/mail/em-utils.h
+++ b/mail/em-utils.h
@@ -74,9 +74,6 @@ gchar *em_utils_message_to_html (CamelMimeMessage *msg, const gchar *credits, gu
void em_utils_expunge_folder (GtkWidget *parent, EMailSession *session, CamelFolder *folder);
void em_utils_empty_trash (GtkWidget *parent, EMailSession *session);
-/* returns the folder name portion of an URI */
-gchar *em_utils_folder_name_from_uri (const gchar *uri);
-
/* is this address in the addressbook? caches results */
gboolean em_utils_in_addressbook (CamelInternetAddress *addr, gboolean local_only);
CamelMimePart *em_utils_contact_photo (CamelInternetAddress *addr, gboolean local);