From 99120a0f18a24059004022c1a079e6fc31de3d2a Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Tue, 26 Nov 2013 11:32:29 -0500 Subject: 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 file changed, 14 deletions(-) (limited to 'modules') diff --git a/modules/gravatar/e-gravatar-photo-source.c b/modules/gravatar/e-gravatar-photo-source.c index 362666e816..bcfe0dea9e 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); -- cgit v1.2.3