From: Jens Geyer Date: Sat, 22 Feb 2014 20:10:45 +0000 (+0100) Subject: THRIFT-2373 warning CS0414 in THttpClient.cs: private field 'Thrift.Transport.THttpCl... X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=b080f68d5476a29f1d2eee5b73c660806cf3d7a4;p=common%2Fthrift.git THRIFT-2373 warning CS0414 in THttpClient.cs: private field 'Thrift.Transport.THttpClient.connection' assigned but never used Patch: Jens Geyer --- diff --git a/lib/csharp/src/Transport/THttpClient.cs b/lib/csharp/src/Transport/THttpClient.cs index 7f04be71..78653f3b 100644 --- a/lib/csharp/src/Transport/THttpClient.cs +++ b/lib/csharp/src/Transport/THttpClient.cs @@ -40,15 +40,13 @@ namespace Thrift.Transport private IDictionary customHeaders = new Dictionary(); - 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);