[evolution] EGravatarPhotoSource: Remove EProxy usage.



commit 99120a0f18a24059004022c1a079e6fc31de3d2a
Author: Matthew Barnes <mbarnes redhat com>
Date:   Tue Nov 26 11:32:29 2013 -0500

    EGravatarPhotoSource: Remove EProxy usage.
    
    EProxy is deprecated.  No easy access to ESourceRegistry from which to
    grab the "system-proxy" ESource, so just rely on SoupSession's default
    GProxyResolver.  Good enough; this is a nice-to-have feature anyway.

 modules/gravatar/e-gravatar-photo-source.c |   14 --------------
 1 files changed, 0 insertions(+), 14 deletions(-)
---
diff --git a/modules/gravatar/e-gravatar-photo-source.c b/modules/gravatar/e-gravatar-photo-source.c
index 362666e..bcfe0de 100644
--- a/modules/gravatar/e-gravatar-photo-source.c
+++ b/modules/gravatar/e-gravatar-photo-source.c
@@ -67,7 +67,6 @@ gravatar_photo_source_get_photo_thread (GSimpleAsyncResult *simple,
        GInputStream *stream = NULL;
        gchar *hash;
        gchar *uri;
-       EProxy *proxy;
        GError *local_error = NULL;
 
        async_context = g_simple_async_result_get_op_res_gpointer (simple);
@@ -80,19 +79,6 @@ gravatar_photo_source_get_photo_thread (GSimpleAsyncResult *simple,
 
        session = soup_session_new ();
 
-       proxy = e_proxy_new ();
-       e_proxy_setup_proxy (proxy);
-
-       if (e_proxy_require_proxy_for_uri (proxy, uri)) {
-               SoupURI *proxy_uri;
-
-               proxy_uri = e_proxy_peek_uri_for (proxy, uri);
-
-               g_object_set (session, SOUP_SESSION_PROXY_URI, proxy_uri, NULL);
-       }
-
-       g_clear_object (&proxy);
-
        /* We control the URI so there should be no error. */
        request = soup_session_request (session, uri, NULL);
        g_return_if_fail (request != NULL);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]