Remove unused camel_service_get_session().
authorMatthew Barnes <mbarnes@redhat.com>
Sat, 30 Nov 2013 13:07:58 +0000 (08:07 -0500)
committerMatthew Barnes <mbarnes@redhat.com>
Sat, 30 Nov 2013 13:18:42 +0000 (08:18 -0500)
camel/camel-service.c
camel/camel-service.h
docs/reference/camel/camel-sections.txt

index 0b1988a..02d1b3b 100644 (file)
@@ -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
  *
index d61e33b..fd7c0a8 100644 (file)
@@ -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 */
index c206e08..7fea847 100644 (file)
@@ -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