You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by je...@apache.org on 2014/02/22 21:12:52 UTC

git commit: THRIFT-2373 warning CS0414 in THttpClient.cs: private field 'Thrift.Transport.THttpClient.connection' assigned but never used

Repository: thrift
Updated Branches:
  refs/heads/master c94b293dc -> b080f68d5


THRIFT-2373 warning CS0414 in THttpClient.cs: private field 'Thrift.Transport.THttpClient.connection' assigned but never used

Patch: Jens Geyer


Project: http://git-wip-us.apache.org/repos/asf/thrift/repo
Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/b080f68d
Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/b080f68d
Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/b080f68d

Branch: refs/heads/master
Commit: b080f68d5476a29f1d2eee5b73c660806cf3d7a4
Parents: c94b293
Author: Jens Geyer <je...@apache.org>
Authored: Sat Feb 22 21:10:45 2014 +0100
Committer: Jens Geyer <je...@apache.org>
Committed: Sat Feb 22 21:11:40 2014 +0100

----------------------------------------------------------------------
 lib/csharp/src/Transport/THttpClient.cs | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/thrift/blob/b080f68d/lib/csharp/src/Transport/THttpClient.cs
----------------------------------------------------------------------
diff --git a/lib/csharp/src/Transport/THttpClient.cs b/lib/csharp/src/Transport/THttpClient.cs
index 7f04be7..78653f3 100644
--- a/lib/csharp/src/Transport/THttpClient.cs
+++ b/lib/csharp/src/Transport/THttpClient.cs
@@ -40,15 +40,13 @@ namespace Thrift.Transport
 
 		private IDictionary<String, String> customHeaders = new Dictionary<string, string>();
 
-        private HttpWebRequest connection = null;
 #if !SILVERLIGHT
         private IWebProxy proxy = WebRequest.DefaultWebProxy;
-#endif
-
+#endif
+
         public THttpClient(Uri u)
 		{
 			uri = u;
-            connection = CreateRequest();
 		}
 
 		public int ConnectTimeout
@@ -178,7 +176,7 @@ namespace Thrift.Transport
 			}
 		}
 #endif
-				private HttpWebRequest CreateRequest()
+		private HttpWebRequest CreateRequest()
 		{
 			HttpWebRequest connection = (HttpWebRequest)WebRequest.Create(uri);