Remove camel_session_ref_proxy_resolver().
authorMatthew Barnes <mbarnes@redhat.com>
Thu, 10 Oct 2013 17:07:25 +0000 (13:07 -0400)
committerMatthew Barnes <mbarnes@redhat.com>
Fri, 25 Oct 2013 17:27:08 +0000 (13:27 -0400)
Short-lived, the function never made it into a release.

Use camel_service_ref_proxy_resolver() instead.

camel/camel-session.c
camel/camel-session.h
docs/reference/camel/camel-sections.txt

index 4f6e4b2..fd29ae0 100644 (file)
@@ -450,20 +450,6 @@ session_remove_service (CamelSession *session,
        g_mutex_unlock (&session->priv->services_lock);
 }
 
-static GProxyResolver *
-session_ref_proxy_resolver (CamelSession *session,
-                            CamelService *service)
-{
-       GProxyResolver *proxy_resolver;
-
-       proxy_resolver = g_proxy_resolver_get_default ();
-
-       if (proxy_resolver != NULL)
-               g_object_ref (proxy_resolver);
-
-       return proxy_resolver;
-}
-
 static gboolean
 session_authenticate_sync (CamelSession *session,
                            CamelService *service,
@@ -736,7 +722,6 @@ camel_session_class_init (CamelSessionClass *class)
 
        class->add_service = session_add_service;
        class->remove_service = session_remove_service;
-       class->ref_proxy_resolver = session_ref_proxy_resolver;
 
        class->authenticate_sync = session_authenticate_sync;
        class->forward_to_sync = session_forward_to_sync;
@@ -1367,35 +1352,6 @@ camel_session_trust_prompt (CamelSession *session,
 }
 
 /**
- * camel_session_ref_proxy_resolver:
- * @session: a #CamelSession
- * @service: a #CamelService
- *
- * Returns the #GProxyResolver for @service.
- *
- * The returned #GProxyResolver is referenced for thread-safety and should
- * be unreferenced with g_object_unref() when finished with it.
- *
- * Returns: a #GProxyResolver
- *
- * Since: 3.12
- **/
-GProxyResolver *
-camel_session_ref_proxy_resolver (CamelSession *session,
-                                  CamelService *service)
-{
-       CamelSessionClass *class;
-
-       g_return_val_if_fail (CAMEL_IS_SESSION (session), NULL);
-       g_return_val_if_fail (CAMEL_IS_SERVICE (service), NULL);
-
-       class = CAMEL_SESSION_GET_CLASS (session);
-       g_return_val_if_fail (class->ref_proxy_resolver != NULL, NULL);
-
-       return class->ref_proxy_resolver (session, service);
-}
-
-/**
  * camel_session_lookup_addressbook:
  *
  * Since: 2.22
index 413abb7..e504e6b 100644 (file)
@@ -122,9 +122,6 @@ struct _CamelSessionClass {
                                                 CamelService *service,
                                                 GTlsCertificate *certificate,
                                                 GTlsCertificateFlags errors);
-       GProxyResolver *
-                       (*ref_proxy_resolver)   (CamelSession *session,
-                                                CamelService *service);
        CamelFilterDriver *
                        (*get_filter_driver)    (CamelSession *session,
                                                 const gchar *type,
@@ -215,10 +212,6 @@ CamelCertTrust     camel_session_trust_prompt      (CamelSession *session,
                                                 CamelService *service,
                                                 GTlsCertificate *certificate,
                                                 GTlsCertificateFlags errors);
-GProxyResolver *
-               camel_session_ref_proxy_resolver
-                                               (CamelSession *session,
-                                                CamelService *service);
 gboolean       camel_session_get_online        (CamelSession *session);
 void           camel_session_set_online        (CamelSession *session,
                                                 gboolean online);
index 09277f8..27dddef 100644 (file)
@@ -2345,7 +2345,6 @@ camel_session_get_password
 camel_session_forget_password
 camel_session_alert_user
 camel_session_trust_prompt
-camel_session_ref_proxy_resolver
 camel_session_get_online
 camel_session_set_online
 camel_session_get_filter_driver