aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/mail-tools.c42
-rw-r--r--mail/mail-tools.h2
2 files changed, 0 insertions, 44 deletions
diff --git a/mail/mail-tools.c b/mail/mail-tools.c
index 3804321740..3a77da2742 100644
--- a/mail/mail-tools.c
+++ b/mail/mail-tools.c
@@ -372,48 +372,6 @@ mail_tool_uri_to_folder (const gchar *uri,
return folder;
}
-/**
- * mail_tools_x_evolution_message_parse:
- * @in: GtkSelectionData->data
- * @inlen: GtkSelectionData->length
- * @uids: pointer to a gptrarray that will be filled with uids on success
- *
- * Parses the GtkSelectionData and returns a CamelFolder and a list of
- * UIDs specified by the selection.
- **/
-CamelFolder *
-mail_tools_x_evolution_message_parse (gchar *in, guint inlen, GPtrArray **uids)
-{
- /* format: "uri\0uid1\0uid2\0uid3\0...\0uidn" */
- gchar *inptr, *inend;
- CamelFolder *folder;
-
- if (in == NULL)
- return NULL;
-
- /* FIXME Not passing a GCancellable or GError here. */
- folder = mail_tool_uri_to_folder (in, 0, NULL, NULL);
-
- if (!folder)
- return NULL;
-
- /* split the uids */
- inend = in + inlen;
- inptr = in + strlen (in) + 1;
- *uids = g_ptr_array_new ();
- while (inptr < inend) {
- gchar *start = inptr;
-
- while (inptr < inend && *inptr)
- inptr++;
-
- g_ptr_array_add (*uids, g_strndup (start, inptr - start));
- inptr++;
- }
-
- return folder;
-}
-
/* FIXME: This should be a property on CamelFolder */
gchar *
mail_tools_folder_to_url (CamelFolder *folder)
diff --git a/mail/mail-tools.h b/mail/mail-tools.h
index e746e9f5ec..21d3510300 100644
--- a/mail/mail-tools.h
+++ b/mail/mail-tools.h
@@ -58,8 +58,6 @@ CamelFolder * mail_tool_uri_to_folder (const gchar *uri,
GHashTable *mail_lookup_url_table (CamelMimeMessage *mime_message);
-CamelFolder *mail_tools_x_evolution_message_parse (gchar *in, guint inlen, GPtrArray **uids);
-
gchar *mail_tools_folder_to_url (CamelFolder *folder);
#endif