[evolution-data-server] Remove unused camel_store_summary_info_new_from_path().
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Remove unused camel_store_summary_info_new_from_path().
- Date: Fri, 16 Aug 2013 18:06:44 +0000 (UTC)
commit b254cf3ca4e2ef8f5220bdcceca09f471dbc7ef7
Author: Matthew Barnes <mbarnes redhat com>
Date: Fri Aug 16 09:55:05 2013 -0400
Remove unused camel_store_summary_info_new_from_path().
camel/camel-store-summary.c | 34 ++++++------------------------
camel/camel-store-summary.h | 5 ----
docs/reference/camel/camel-sections.txt | 1 -
3 files changed, 7 insertions(+), 33 deletions(-)
---
diff --git a/camel/camel-store-summary.c b/camel/camel-store-summary.c
index 1279e25..e7593d5 100644
--- a/camel/camel-store-summary.c
+++ b/camel/camel-store-summary.c
@@ -721,7 +721,13 @@ camel_store_summary_add_from_path (CamelStoreSummary *summary,
g_warning ("Trying to add folder '%s' to summary that already has it", path);
info = NULL;
} else {
- info = camel_store_summary_info_new_from_path (summary, path);
+ CamelStoreSummaryClass *class;
+
+ class = CAMEL_STORE_SUMMARY_GET_CLASS (summary);
+ g_return_val_if_fail (class->store_info_new != NULL, NULL);
+
+ info = class->store_info_new (summary, path);
+
g_ptr_array_add (summary->folders, info);
g_hash_table_insert (summary->folders_path, (gchar *) camel_store_info_path (summary, info),
info);
summary->flags |= CAMEL_STORE_SUMMARY_DIRTY;
@@ -733,32 +739,6 @@ camel_store_summary_add_from_path (CamelStoreSummary *summary,
}
/**
- * camel_store_summary_info_new_from_path:
- * @summary: a #CamelStoreSummary object
- * @path: item path
- *
- * Create a new info record from a name.
- *
- * Unreference the returned #CamelStoreInfo with
- * camel_store_summary_info_unref() when finished with it.
- *
- * Returns: the #CamelStoreInfo associated with @path
- **/
-CamelStoreInfo *
-camel_store_summary_info_new_from_path (CamelStoreSummary *summary,
- const gchar *path)
-{
- CamelStoreSummaryClass *class;
-
- g_return_val_if_fail (CAMEL_IS_STORE_SUMMARY (summary), NULL);
-
- class = CAMEL_STORE_SUMMARY_GET_CLASS (summary);
- g_return_val_if_fail (class->store_info_new != NULL, NULL);
-
- return class->store_info_new (summary, path);
-}
-
-/**
* camel_store_summary_info_ref:
* @summary: a #CamelStoreSummary object
* @info: a #CamelStoreInfo
diff --git a/camel/camel-store-summary.h b/camel/camel-store-summary.h
index 90af5a4..e7f0067 100644
--- a/camel/camel-store-summary.h
+++ b/camel/camel-store-summary.h
@@ -170,11 +170,6 @@ CamelStoreInfo *
CamelStoreInfo *
camel_store_summary_info_new (CamelStoreSummary *summary);
CamelStoreInfo *
- camel_store_summary_info_new_from_path
- (CamelStoreSummary *summary,
- const gchar *path);
-
-CamelStoreInfo *
camel_store_summary_info_ref (CamelStoreSummary *summary,
CamelStoreInfo *info);
void camel_store_summary_info_unref (CamelStoreSummary *summary,
diff --git a/docs/reference/camel/camel-sections.txt b/docs/reference/camel/camel-sections.txt
index 3d8cb11..e8f6a76 100644
--- a/docs/reference/camel/camel-sections.txt
+++ b/docs/reference/camel/camel-sections.txt
@@ -2591,7 +2591,6 @@ camel_store_summary_touch
camel_store_summary_add
camel_store_summary_add_from_path
camel_store_summary_info_new
-camel_store_summary_info_new_from_path
camel_store_summary_info_ref
camel_store_summary_info_unref
camel_store_summary_info_free
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]