aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-10-03 21:37:36 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-10-03 21:37:36 +0800
commitba0032efa85d65135926790761bdcf04a2ac849e (patch)
treef961de9aa7c311f69004d80b0adf54b84fcf7765 /mail
parentc6e6588fb75373ab193b7d8927ac663aad4b39ab (diff)
downloadgsoc2013-evolution-ba0032efa85d65135926790761bdcf04a2ac849e.tar
gsoc2013-evolution-ba0032efa85d65135926790761bdcf04a2ac849e.tar.gz
gsoc2013-evolution-ba0032efa85d65135926790761bdcf04a2ac849e.tar.bz2
gsoc2013-evolution-ba0032efa85d65135926790761bdcf04a2ac849e.tar.lz
gsoc2013-evolution-ba0032efa85d65135926790761bdcf04a2ac849e.tar.xz
gsoc2013-evolution-ba0032efa85d65135926790761bdcf04a2ac849e.tar.zst
gsoc2013-evolution-ba0032efa85d65135926790761bdcf04a2ac849e.zip
Remove unused mail_tools_x_evolution_message_parse()
Diffstat (limited to 'mail')
-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