[evolution-data-server] Remove unused camel_store_summary_header_load().



commit 6d3eb43495da853765a210ec13784229c461e0b9
Author: Matthew Barnes <mbarnes redhat com>
Date:   Fri Aug 16 09:42:29 2013 -0400

    Remove unused camel_store_summary_header_load().

 camel/camel-store-summary.c             |   36 -------------------------------
 camel/camel-store-summary.h             |    3 --
 docs/reference/camel/camel-sections.txt |    1 -
 3 files changed, 0 insertions(+), 40 deletions(-)
---
diff --git a/camel/camel-store-summary.c b/camel/camel-store-summary.c
index 90dd82a..1279e25 100644
--- a/camel/camel-store-summary.c
+++ b/camel/camel-store-summary.c
@@ -661,42 +661,6 @@ camel_store_summary_save (CamelStoreSummary *summary)
 }
 
 /**
- * camel_store_summary_header_load:
- * @summary: a #CamelStoreSummary object
- *
- * Only load the header information from the summary,
- * keep the rest on disk.  This should only be done on
- * a fresh summary object.
- *
- * Returns: %0 on success or %-1 on fail
- **/
-gint
-camel_store_summary_header_load (CamelStoreSummary *summary)
-{
-       CamelStoreSummaryClass *class;
-       FILE *in;
-       gint ret;
-
-       g_return_val_if_fail (CAMEL_IS_STORE_SUMMARY (summary), -1);
-       g_return_val_if_fail (summary->summary_path != NULL, -1);
-
-       class = CAMEL_STORE_SUMMARY_GET_CLASS (summary);
-       g_return_val_if_fail (class->summary_header_load != NULL, -1);
-
-       in = g_fopen (summary->summary_path, "rb");
-       if (in == NULL)
-               return -1;
-
-       g_rec_mutex_lock (&summary->priv->io_lock);
-       ret = class->summary_header_load (summary, in);
-       g_rec_mutex_unlock (&summary->priv->io_lock);
-
-       fclose (in);
-       summary->flags &= ~CAMEL_STORE_SUMMARY_DIRTY;
-       return ret;
-}
-
-/**
  * camel_store_summary_add:
  * @summary: a #CamelStoreSummary object
  * @info: a #CamelStoreInfo
diff --git a/camel/camel-store-summary.h b/camel/camel-store-summary.h
index ee76066..90af5a4 100644
--- a/camel/camel-store-summary.h
+++ b/camel/camel-store-summary.h
@@ -153,9 +153,6 @@ void                camel_store_summary_set_filename
 gint           camel_store_summary_load        (CamelStoreSummary *summary);
 gint           camel_store_summary_save        (CamelStoreSummary *summary);
 
-/* only load the header */
-gint           camel_store_summary_header_load (CamelStoreSummary *summary);
-
 /* set the dirty bit on the summary */
 void           camel_store_summary_touch       (CamelStoreSummary *summary);
 
diff --git a/docs/reference/camel/camel-sections.txt b/docs/reference/camel/camel-sections.txt
index f79ceba..3d8cb11 100644
--- a/docs/reference/camel/camel-sections.txt
+++ b/docs/reference/camel/camel-sections.txt
@@ -2587,7 +2587,6 @@ camel_store_summary_new
 camel_store_summary_set_filename
 camel_store_summary_load
 camel_store_summary_save
-camel_store_summary_header_load
 camel_store_summary_touch
 camel_store_summary_add
 camel_store_summary_add_from_path


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]