aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/em-utils.c')
-rw-r--r--mail/em-utils.c25
1 files changed, 0 insertions, 25 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 */