[evolution-mapi/wip/camel-more-gobject] Remove unused CamelMessageContentInfo build from CamelFolderSummary
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-mapi/wip/camel-more-gobject] Remove unused CamelMessageContentInfo build from CamelFolderSummary
- Date: Tue, 13 Sep 2016 14:50:51 +0000 (UTC)
commit dad262a2b94ffe076b42af46fa46ad764a15cac7
Author: Milan Crha <mcrha redhat com>
Date: Tue Sep 13 16:50:49 2016 +0200
Remove unused CamelMessageContentInfo build from CamelFolderSummary
src/camel/camel-mapi-folder-summary.c | 43 ---------------------------------
1 files changed, 0 insertions(+), 43 deletions(-)
---
diff --git a/src/camel/camel-mapi-folder-summary.c b/src/camel/camel-mapi-folder-summary.c
index b197185..8c390ed 100644
--- a/src/camel/camel-mapi-folder-summary.c
+++ b/src/camel/camel-mapi-folder-summary.c
@@ -41,9 +41,6 @@
static CamelFIRecord* mapi_summary_header_to_db (CamelFolderSummary *, GError **error);
static gboolean mapi_summary_header_from_db (CamelFolderSummary *, CamelFIRecord *fir);
-static CamelMessageContentInfo * mapi_content_info_from_db (CamelFolderSummary *s, CamelMIRecord *mir);
-static gboolean mapi_content_info_to_db (CamelFolderSummary *s, CamelMessageContentInfo *info, CamelMIRecord
*mir);
-
/*End of Prototypes*/
G_DEFINE_TYPE (CamelMapiFolderSummary, camel_mapi_folder_summary, CAMEL_TYPE_FOLDER_SUMMARY)
@@ -57,8 +54,6 @@ camel_mapi_folder_summary_class_init (CamelMapiFolderSummaryClass *class)
folder_summary_class->message_info_type = CAMEL_TYPE_MAPI_MESSAGE_INFO;
folder_summary_class->summary_header_to_db = mapi_summary_header_to_db;
folder_summary_class->summary_header_from_db = mapi_summary_header_from_db;
- folder_summary_class->content_info_to_db = mapi_content_info_to_db;
- folder_summary_class->content_info_from_db = mapi_content_info_from_db;
}
static void
@@ -82,8 +77,6 @@ camel_mapi_folder_summary_new (CamelFolder *folder)
summary = g_object_new (CAMEL_TYPE_MAPI_FOLDER_SUMMARY, "folder", folder, NULL);
- camel_folder_summary_set_build_content (summary, FALSE);
-
if (!camel_folder_summary_load_from_db (summary, &local_error)) {
/* FIXME: Isn't this dangerous ? We clear the summary
if it cannot be loaded, for some random reason.
@@ -136,42 +129,6 @@ mapi_summary_header_to_db (CamelFolderSummary *summary, GError **error)
return fir;
}
-static CamelMessageContentInfo*
-mapi_content_info_from_db (CamelFolderSummary *s, CamelMIRecord *mir)
-{
- CamelFolderSummaryClass *folder_summary_class;
- gchar *part = mir->cinfo;
- guint32 type=0;
-
- folder_summary_class = CAMEL_FOLDER_SUMMARY_CLASS (camel_mapi_folder_summary_parent_class);
-
- if (part)
- type = camel_util_bdata_get_number (&part, 0);
-
- mir->cinfo = part;
-
- if (type)
- return folder_summary_class->content_info_from_db (s, mir);
- else
- return camel_folder_summary_content_info_new (s);
-}
-
-static gboolean
-mapi_content_info_to_db (CamelFolderSummary *s, CamelMessageContentInfo *info, CamelMIRecord *mir)
-{
- CamelFolderSummaryClass *folder_summary_class;
-
- folder_summary_class = CAMEL_FOLDER_SUMMARY_CLASS (camel_mapi_folder_summary_parent_class);
-
- if (info->type) {
- mir->cinfo = g_strdup ("1");
- return folder_summary_class->content_info_to_db (s, info, mir);
- } else {
- mir->cinfo = g_strdup ("0");
- return TRUE;
- }
-}
-
void
mapi_summary_clear (CamelFolderSummary *summary, gboolean uncache)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]