[evolution-data-server] Remove unused camel_service_get_session().
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Remove unused camel_service_get_session().
- Date: Sat, 30 Nov 2013 13:17:19 +0000 (UTC)
commit ca22f2fcc29db84410016d26f099a2a5be0bd1a2
Author: Matthew Barnes <mbarnes redhat com>
Date: Sat Nov 30 08:07:58 2013 -0500
Remove unused camel_service_get_session().
camel/camel-service.c | 31 -------------------------------
camel/camel-service.h | 5 -----
docs/reference/camel/camel-sections.txt | 2 --
3 files changed, 0 insertions(+), 38 deletions(-)
---
diff --git a/camel/camel-service.c b/camel/camel-service.c
index 0b1988a..02d1b3b 100644
--- a/camel/camel-service.c
+++ b/camel/camel-service.c
@@ -1473,37 +1473,6 @@ camel_service_ref_session (CamelService *service)
}
/**
- * camel_service_get_session:
- * @service: a #CamelService
- *
- * Returns the #CamelSession associated with the service.
- *
- * Note this function is not thread-safe. The returned #CamelSession could
- * be finalized by another thread while the caller is still using it.
- *
- * Returns: the #CamelSession
- *
- * Deprecated: 3.8: Use camel_service_ref_session() instead.
- **/
-CamelSession *
-camel_service_get_session (CamelService *service)
-{
- CamelSession *session;
-
- g_return_val_if_fail (CAMEL_IS_SERVICE (service), NULL);
-
- session = camel_service_ref_session (service);
-
- /* XXX Drop the CamelSession reference for backward-compatibility.
- * This is risky. Without a reference, the CamelSession could
- * be finalized while the caller is still using it. */
- if (session != NULL)
- g_object_unref (session);
-
- return session;
-}
-
-/**
* camel_service_ref_settings:
* @service: a #CamelService
*
diff --git a/camel/camel-service.h b/camel/camel-service.h
index d61e33b..fd7c0a8 100644
--- a/camel/camel-service.h
+++ b/camel/camel-service.h
@@ -217,11 +217,6 @@ GList * camel_service_query_auth_types_finish
GAsyncResult *result,
GError **error);
-#ifndef CAMEL_DISABLE_DEPRECATED
-struct _CamelSession *
- camel_service_get_session (CamelService *service);
-#endif /* CAMEL_DISABLE_DEPRECATED */
-
G_END_DECLS
#endif /* CAMEL_SERVICE_H */
diff --git a/docs/reference/camel/camel-sections.txt b/docs/reference/camel/camel-sections.txt
index c206e08..7fea847 100644
--- a/docs/reference/camel/camel-sections.txt
+++ b/docs/reference/camel/camel-sections.txt
@@ -1874,8 +1874,6 @@ camel_service_authenticate_finish
camel_service_query_auth_types_sync
camel_service_query_auth_types
camel_service_query_auth_types_finish
-<SUBSECTION Deprecated>
-camel_service_get_session
<SUBSECTION Standard>
CAMEL_SERVICE
CAMEL_IS_SERVICE
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]