Remove unused camel_store_summary_info_new_from_path().
authorMatthew Barnes <mbarnes@redhat.com>
Fri, 16 Aug 2013 13:55:05 +0000 (09:55 -0400)
committerMatthew Barnes <mbarnes@redhat.com>
Fri, 16 Aug 2013 18:07:20 +0000 (14:07 -0400)
camel/camel-store-summary.c
camel/camel-store-summary.h
docs/reference/camel/camel-sections.txt

index 1279e25..e7593d5 100644 (file)
@@ -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
index 90af5a4..e7f0067 100644 (file)
@@ -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,
index 3d8cb11..e8f6a76 100644 (file)
@@ -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