Cosmetic; remove unnecessary cast and fix compiler warning.
authorMartin Baulig <mabaul@microsoft.com>
Tue, 15 Aug 2017 17:12:47 +0000 (13:12 -0400)
committerMartin Baulig <mabaul@microsoft.com>
Tue, 15 Aug 2017 17:12:47 +0000 (13:12 -0400)
mcs/class/System/Mono.AppleTls/Trust.cs
mcs/class/System/System.Net/WebConnection.cs

index 38778f109b0248eb9d861a8324adda4547985b20..3ec3c4dd608140a2f503c7d98fdbf338593a167f 100644 (file)
@@ -128,7 +128,7 @@ namespace Mono.AppleTls {
                {
                        if (handle == IntPtr.Zero)
                                throw new ObjectDisposedException ("SecTrust");
-                       if (((long)index < 0) || ((long)index >= Count))
+                       if (index < 0 || index >= Count)
                                throw new ArgumentOutOfRangeException ("index");
 
                        var ptr = SecTrustGetCertificateAtIndex (handle, (IntPtr)index);
index e1435f84b643cbab403b80237bc8ebdf51ae121c..68c480fa86eb26acd2e517e0023975863b0f32a1 100644 (file)
@@ -56,7 +56,6 @@ namespace System.Net
                object socketLock = new object ();
                IWebConnectionState state;
                WebExceptionStatus status;
-               WaitCallback initConn;
                bool keepAlive;
                byte [] buffer;
                EventHandler abortHandler;