[evolution-data-server] Remove unused camel_folder_summary_guess_content_info().
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Remove unused camel_folder_summary_guess_content_info().
- Date: Tue, 1 Oct 2013 15:39:40 +0000 (UTC)
commit f84eea2972f184b641c5157464199070d1759c8b
Author: Matthew Barnes <mbarnes redhat com>
Date: Tue Oct 1 11:06:06 2013 -0400
Remove unused camel_folder_summary_guess_content_info().
camel/camel-folder-summary.c | 62 -------------------------------
camel/camel-folder-summary.h | 5 --
docs/reference/camel/camel-sections.txt | 1 -
3 files changed, 0 insertions(+), 68 deletions(-)
---
diff --git a/camel/camel-folder-summary.c b/camel/camel-folder-summary.c
index 00dc619..0cbb540 100644
--- a/camel/camel-folder-summary.c
+++ b/camel/camel-folder-summary.c
@@ -4703,68 +4703,6 @@ camel_message_info_dump (CamelMessageInfo *info)
camel_content_info_dump (((CamelMessageInfoBase *) info)->content, 0);
}
-static gboolean
-compare_strings (const gchar *str1,
- const gchar *str2)
-{
- if (str1 && str2 && !g_ascii_strcasecmp (str1, str2))
- return TRUE;
- else if (!str1 && !str2)
- return TRUE;
- else
- return FALSE;
-}
-
-static gboolean
-match_content_type (CamelContentType *info_ctype,
- CamelContentType *ctype)
-{
- const gchar *name1, *name2;
-
- if (!compare_strings (info_ctype->type, ctype->type))
- return FALSE;
- if (!compare_strings (info_ctype->subtype, ctype->subtype))
- return FALSE;
-
- name1 = camel_content_type_param (info_ctype, "name");
- name2 = camel_content_type_param (ctype, "name");
- if (!compare_strings (name1, name2))
- return FALSE;
-
- return TRUE;
-}
-
-/**
- * camel_folder_summary_guess_content_info:
- * @info: a #CamelMessageInfo
- * @ctype: a #CamelContentType
- *
- * FIXME Document me!
- *
- * Since: 2.30
- **/
-const CamelMessageContentInfo *
-camel_folder_summary_guess_content_info (CamelMessageInfo *info,
- CamelContentType *ctype)
-{
- const CamelMessageContentInfo *ci = camel_message_info_content (info);
-
- while (ci) {
- const CamelMessageContentInfo *child = ci;
-
- do {
- if (child->type && match_content_type (child->type, ctype))
- return child;
-
- child = child->next;
- } while (child != NULL);
-
- ci = ci->childs;
- }
-
- return NULL;
-}
-
/**
* camel_folder_summary_lock:
* @summary: a #CamelFolderSummary
diff --git a/camel/camel-folder-summary.h b/camel/camel-folder-summary.h
index 319603d..3aec1c9 100644
--- a/camel/camel-folder-summary.h
+++ b/camel/camel-folder-summary.h
@@ -627,11 +627,6 @@ gboolean camel_message_info_set_user_tag (CamelMessageInfo *info,
const gchar *id,
const gchar *val);
-const CamelMessageContentInfo *
- camel_folder_summary_guess_content_info
- (CamelMessageInfo *info,
- CamelContentType *ctype);
-
/* debugging functions */
void camel_content_info_dump (CamelMessageContentInfo *ci,
gint depth);
diff --git a/docs/reference/camel/camel-sections.txt b/docs/reference/camel/camel-sections.txt
index a5d4476..5aeb955 100644
--- a/docs/reference/camel/camel-sections.txt
+++ b/docs/reference/camel/camel-sections.txt
@@ -644,7 +644,6 @@ camel_message_info_user_tag
camel_message_info_set_flags
camel_message_info_set_user_flag
camel_message_info_set_user_tag
-camel_folder_summary_guess_content_info
camel_content_info_dump
camel_message_info_dump
bdata_extract_digit
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]