[evolution-data-server] Remove camel_store_folder_uri_equal().
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Remove camel_store_folder_uri_equal().
- Date: Tue, 3 May 2011 15:24:51 +0000 (UTC)
commit 53f5c7544fb958a106ddda6fca86091869e5a41a
Author: Matthew Barnes <mbarnes redhat com>
Date: Tue May 3 11:22:46 2011 -0400
Remove camel_store_folder_uri_equal().
Function was not used by Camel or any of its providers. Evolution
now has an equivalent function named e_mail_folder_uri_equal().
camel/camel-store.c | 62 ---------------------------
camel/camel-store.h | 3 -
docs/reference/camel/camel-sections.txt | 1 -
docs/reference/camel/tmpl/camel-store.sgml | 11 -----
docs/reference/camel/tmpl/camel-unused.sgml | 10 ++++
5 files changed, 10 insertions(+), 77 deletions(-)
---
diff --git a/camel/camel-store.c b/camel/camel-store.c
index 7ac31ab..90d0efb 100644
--- a/camel/camel-store.c
+++ b/camel/camel-store.c
@@ -1999,68 +1999,6 @@ camel_store_folder_is_subscribed (CamelStore *store,
}
/**
- * camel_store_folder_uri_equal:
- * @store: a #CamelStore
- * @uri0: a folder uri
- * @uri1: another folder uri
- *
- * Compares two folder uris to check that they are equal.
- *
- * Returns: %TRUE if they are equal or %FALSE otherwise
- **/
-gint
-camel_store_folder_uri_equal (CamelStore *store,
- const gchar *uri0,
- const gchar *uri1)
-{
- CamelStoreClass *class;
- CamelProvider *provider;
- CamelURL *url0, *url1;
- gint equal;
-
- g_return_val_if_fail (CAMEL_IS_STORE (store), FALSE);
- g_return_val_if_fail (uri0 && uri1, FALSE);
-
- class = CAMEL_STORE_GET_CLASS (store);
- g_return_val_if_fail (class->compare_folder_name != NULL, FALSE);
-
- provider = camel_service_get_provider (CAMEL_SERVICE (store));
-
- if (!(url0 = camel_url_new (uri0, NULL)))
- return FALSE;
-
- if (!(url1 = camel_url_new (uri1, NULL))) {
- camel_url_free (url0);
- return FALSE;
- }
-
- if ((equal = provider->url_equal (url0, url1))) {
- const gchar *name0, *name1;
-
- if (provider->url_flags & CAMEL_URL_FRAGMENT_IS_PATH) {
- name0 = url0->fragment;
- name1 = url1->fragment;
- } else {
- name0 = url0->path && url0->path[0] == '/' ? url0->path + 1 : url0->path;
- name1 = url1->path && url1->path[0] == '/' ? url1->path + 1 : url1->path;
- }
-
- if (name0 == NULL)
- g_warning("URI is badly formed, missing folder name: %s", uri0);
-
- if (name1 == NULL)
- g_warning("URI is badly formed, missing folder name: %s", uri1);
-
- equal = name0 && name1 && class->compare_folder_name (name0, name1);
- }
-
- camel_url_free (url0);
- camel_url_free (url1);
-
- return equal;
-}
-
-/**
* camel_store_can_refresh_folder
* @store: a #CamelStore
* @info: a #CamelFolderInfo
diff --git a/camel/camel-store.h b/camel/camel-store.h
index 49cfe4f..ff1f0fc 100644
--- a/camel/camel-store.h
+++ b/camel/camel-store.h
@@ -482,9 +482,6 @@ gboolean camel_store_supports_subscriptions
(CamelStore *store);
gboolean camel_store_folder_is_subscribed (CamelStore *store,
const gchar *folder_name);
-gint camel_store_folder_uri_equal (CamelStore *store,
- const gchar *uri0,
- const gchar *uri1);
gboolean camel_store_can_refresh_folder (CamelStore *store,
CamelFolderInfo *info,
GError **error);
diff --git a/docs/reference/camel/camel-sections.txt b/docs/reference/camel/camel-sections.txt
index 3f95d87..e67d705 100644
--- a/docs/reference/camel/camel-sections.txt
+++ b/docs/reference/camel/camel-sections.txt
@@ -2054,7 +2054,6 @@ camel_folder_info_build
camel_folder_info_clone
camel_store_supports_subscriptions
camel_store_folder_is_subscribed
-camel_store_folder_uri_equal
camel_store_can_refresh_folder
CamelStoreLock
camel_store_lock
diff --git a/docs/reference/camel/tmpl/camel-store.sgml b/docs/reference/camel/tmpl/camel-store.sgml
index 744d0bd..09b90a8 100644
--- a/docs/reference/camel/tmpl/camel-store.sgml
+++ b/docs/reference/camel/tmpl/camel-store.sgml
@@ -330,17 +330,6 @@ CamelStore
@Returns:
-<!-- ##### FUNCTION camel_store_folder_uri_equal ##### -->
-<para>
-
-</para>
-
- store:
- uri0:
- uri1:
- Returns:
-
-
<!-- ##### FUNCTION camel_store_can_refresh_folder ##### -->
<para>
diff --git a/docs/reference/camel/tmpl/camel-unused.sgml b/docs/reference/camel/tmpl/camel-unused.sgml
index 0731365..35181b3 100644
--- a/docs/reference/camel/tmpl/camel-unused.sgml
+++ b/docs/reference/camel/tmpl/camel-unused.sgml
@@ -8791,6 +8791,16 @@ streams
@xevline:
@Returns:
+<!-- ##### FUNCTION camel_store_folder_uri_equal ##### -->
+<para>
+
+</para>
+
+ store:
+ uri0:
+ uri1:
+ Returns:
+
<!-- ##### FUNCTION camel_store_get_inbox ##### -->
<para>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]