[evolution-data-server] Remove unused camel_store_summary_remove_index().
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Remove unused camel_store_summary_remove_index().
- Date: Fri, 16 Aug 2013 18:06:49 +0000 (UTC)
commit 10cba46499803913d7185ab40adae668a24cd0d8
Author: Matthew Barnes <mbarnes redhat com>
Date: Fri Aug 16 10:02:09 2013 -0400
Remove unused camel_store_summary_remove_index().
camel/camel-store-summary.c | 28 ----------------------------
camel/camel-store-summary.h | 3 ---
docs/reference/camel/camel-sections.txt | 1 -
3 files changed, 0 insertions(+), 32 deletions(-)
---
diff --git a/camel/camel-store-summary.c b/camel/camel-store-summary.c
index e7593d5..90e980c 100644
--- a/camel/camel-store-summary.c
+++ b/camel/camel-store-summary.c
@@ -883,34 +883,6 @@ camel_store_summary_remove_path (CamelStoreSummary *summary,
}
/**
- * camel_store_summary_remove_index:
- * @summary: a #CamelStoreSummary object
- * @index: item index
- *
- * Remove a specific info record from the summary, by index.
- **/
-void
-camel_store_summary_remove_index (CamelStoreSummary *summary,
- gint index)
-{
- g_return_if_fail (CAMEL_IS_STORE_SUMMARY (summary));
-
- camel_store_summary_lock (summary, CAMEL_STORE_SUMMARY_SUMMARY_LOCK);
- if (index < summary->folders->len) {
- CamelStoreInfo *info = summary->folders->pdata[index];
-
- g_hash_table_remove (summary->folders_path, camel_store_info_path (summary, info));
- g_ptr_array_remove_index (summary->folders, index);
- summary->flags |= CAMEL_STORE_SUMMARY_DIRTY;
-
- camel_store_summary_unlock (summary, CAMEL_STORE_SUMMARY_SUMMARY_LOCK);
- camel_store_summary_info_unref (summary, info);
- } else {
- camel_store_summary_unlock (summary, CAMEL_STORE_SUMMARY_SUMMARY_LOCK);
- }
-}
-
-/**
* camel_store_summary_info_new:
* @summary: a #CamelStoreSummary object
*
diff --git a/camel/camel-store-summary.h b/camel/camel-store-summary.h
index e7f0067..06bf830 100644
--- a/camel/camel-store-summary.h
+++ b/camel/camel-store-summary.h
@@ -185,9 +185,6 @@ void camel_store_summary_remove (CamelStoreSummary *summary,
CamelStoreInfo *info);
void camel_store_summary_remove_path (CamelStoreSummary *summary,
const gchar *path);
-void camel_store_summary_remove_index
- (CamelStoreSummary *summary,
- gint index);
/* remove all items */
void camel_store_summary_clear (CamelStoreSummary *summary);
diff --git a/docs/reference/camel/camel-sections.txt b/docs/reference/camel/camel-sections.txt
index e8f6a76..89bdf1f 100644
--- a/docs/reference/camel/camel-sections.txt
+++ b/docs/reference/camel/camel-sections.txt
@@ -2596,7 +2596,6 @@ camel_store_summary_info_unref
camel_store_summary_info_free
camel_store_summary_remove
camel_store_summary_remove_path
-camel_store_summary_remove_index
camel_store_summary_clear
camel_store_summary_count
camel_store_summary_index
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]