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 7f04be7..78653f3 100644
--- a/lib/csharp/src/Transport/THttpClient.cs
+++ b/lib/csharp/src/Transport/THttpClient.cs
@@ -40,15 +40,13 @@
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 @@
}
}
#endif
- private HttpWebRequest CreateRequest()
+ private HttpWebRequest CreateRequest()
{
HttpWebRequest connection = (HttpWebRequest)WebRequest.Create(uri);