[evolution-data-server] Remove camel_http_stream_set_proxy().



commit a2fd9d1b89e2e68d3d268a5dd3ce847081bdd209
Author: Matthew Barnes <mbarnes redhat com>
Date:   Sun Sep 25 20:54:10 2011 -0400

    Remove camel_http_stream_set_proxy().
    
    The last user of CamelURL.passwd...

 camel/camel-http-stream.c                        |   30 ----------------------
 camel/camel-http-stream.h                        |    2 -
 docs/reference/camel/camel-sections.txt          |    1 -
 docs/reference/camel/tmpl/camel-http-stream.sgml |    9 ------
 docs/reference/camel/tmpl/camel-unused.sgml      |    8 ++++++
 5 files changed, 8 insertions(+), 42 deletions(-)
---
diff --git a/camel/camel-http-stream.c b/camel/camel-http-stream.c
index 1e4da03..167abda 100644
--- a/camel/camel-http-stream.c
+++ b/camel/camel-http-stream.c
@@ -665,36 +665,6 @@ camel_http_stream_set_user_agent (CamelHttpStream *http_stream,
 }
 
 void
-camel_http_stream_set_proxy (CamelHttpStream *http_stream,
-                             const gchar *proxy_url)
-{
-	g_return_if_fail (CAMEL_IS_HTTP_STREAM (http_stream));
-
-	if (http_stream->proxy)
-		camel_url_free (http_stream->proxy);
-
-	if (proxy_url == NULL || !*proxy_url)
-		http_stream->proxy = NULL;
-	else
-		http_stream->proxy = camel_url_new (proxy_url, NULL);
-
-	if (http_stream->proxy && ((http_stream->proxy->user && *http_stream->proxy->user) || (http_stream->proxy->passwd && *http_stream->proxy->passwd))) {
-		gchar *basic, *basic64;
-
-		basic = g_strdup_printf("%s:%s", http_stream->proxy->user?http_stream->proxy->user:"",
-					http_stream->proxy->passwd?http_stream->proxy->passwd:"");
-		basic64 = g_base64_encode ((const guchar *) basic, strlen (basic));
-		memset (basic, 0, strlen (basic));
-		g_free (basic);
-		camel_http_stream_set_proxy_authpass (http_stream, basic64);
-		memset (basic64, 0, strlen (basic64));
-		g_free (basic64);
-	} else {
-		camel_http_stream_set_proxy_authpass (http_stream, NULL);
-	}
-}
-
-void
 camel_http_stream_set_proxy_authrealm (CamelHttpStream *http_stream,
                                        const gchar *proxy_authrealm)
 {
diff --git a/camel/camel-http-stream.h b/camel/camel-http-stream.h
index ea92caf..286871d 100644
--- a/camel/camel-http-stream.h
+++ b/camel/camel-http-stream.h
@@ -103,8 +103,6 @@ CamelStream *	camel_http_stream_new		(CamelHttpMethod method,
 						 CamelURL *url);
 void		camel_http_stream_set_user_agent (CamelHttpStream *http_stream,
 						 const gchar *user_agent);
-void		camel_http_stream_set_proxy	(CamelHttpStream *http_stream,
-						 const gchar *proxy_url);
 void		camel_http_stream_set_proxy_authrealm
 						(CamelHttpStream *http_stream,
 						 const gchar *proxy_authrealm);
diff --git a/docs/reference/camel/camel-sections.txt b/docs/reference/camel/camel-sections.txt
index a2b9899..6a68a00 100644
--- a/docs/reference/camel/camel-sections.txt
+++ b/docs/reference/camel/camel-sections.txt
@@ -738,7 +738,6 @@ CamelHttpStream
 CamelHttpMethod
 camel_http_stream_new
 camel_http_stream_set_user_agent
-camel_http_stream_set_proxy
 camel_http_stream_set_proxy_authrealm
 camel_http_stream_set_proxy_authpass
 camel_http_stream_get_content_type
diff --git a/docs/reference/camel/tmpl/camel-http-stream.sgml b/docs/reference/camel/tmpl/camel-http-stream.sgml
index 93b7a6f..85cd47c 100644
--- a/docs/reference/camel/tmpl/camel-http-stream.sgml
+++ b/docs/reference/camel/tmpl/camel-http-stream.sgml
@@ -54,15 +54,6 @@ CamelHttpStream
 @user_agent: 
 
 
-<!-- ##### FUNCTION camel_http_stream_set_proxy ##### -->
-<para>
-
-</para>
-
- http_stream: 
- proxy_url: 
-
-
 <!-- ##### FUNCTION camel_http_stream_set_proxy_authrealm ##### -->
 <para>
 
diff --git a/docs/reference/camel/tmpl/camel-unused.sgml b/docs/reference/camel/tmpl/camel-unused.sgml
index 65d0873..41c74f5 100644
--- a/docs/reference/camel/tmpl/camel-unused.sgml
+++ b/docs/reference/camel/tmpl/camel-unused.sgml
@@ -5822,6 +5822,14 @@ streams
 @uid: 
 @info: 
 
+<!-- ##### FUNCTION camel_http_stream_set_proxy ##### -->
+<para>
+
+</para>
+
+ http_stream: 
+ proxy_url: 
+
 <!-- ##### FUNCTION camel_imap4_build_folder_info_tree ##### -->
 <para>
 



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