2010-03-19 Miguel de Icaza <miguel@novell.com>
authorMiguel de Icaza <miguel@gnome.org>
Fri, 19 Mar 2010 21:46:30 +0000 (21:46 -0000)
committerMiguel de Icaza <miguel@gnome.org>
Fri, 19 Mar 2010 21:46:30 +0000 (21:46 -0000)
* Eliminate warnings in a bunch of places.

svn path=/trunk/mcs/; revision=153923

mcs/class/System/ChangeLog
mcs/class/System/System.ComponentModel/TypeDescriptor.cs
mcs/class/System/System.Net.NetworkInformation/IPInterfaceProperties.cs
mcs/class/System/System.Net.NetworkInformation/Ping.cs
mcs/class/System/System.Net.Sockets/Socket.cs
mcs/class/System/System.Net/HttpConnection.cs
mcs/class/System/System.Net/WebClient.cs

index 91ab8989729a5037abd6c775a7ff9e3532483f05..0898db8ee5e672a02b001597c935946b650c6f63 100644 (file)
@@ -1,3 +1,7 @@
+2010-03-19  Miguel de Icaza  <miguel@novell.com>
+
+       * Eliminate warnings in a bunch of places.
+
 2010-03-19  Sebastien Pouliot  <sebastien@ximian.com>
 
        * moonlight_*_System.dll.sources: Bring extra types so we can
index 614ede271fc479e93171733a0db92f6644e3d390..15a68f373a813b2b18b38d9ce21f72d93229a1ac 100644 (file)
@@ -863,14 +863,14 @@ public sealed class TypeDescriptor
                if (instance == null)
                        throw new ArgumentNullException ("instance");
 
-               bool removed = false;
+               //bool removed = false;
                lock (componentDescriptionProvidersLock) {
                        LinkedList <TypeDescriptionProvider> plist;
                        WeakObjectWrapper instanceWrapper = new WeakObjectWrapper (instance);
 
                        if (componentDescriptionProviders.TryGetValue (instanceWrapper, out plist) && plist.Count > 0) {
                                RemoveProvider (provider, plist);
-                               removed = true;
+                               //removed = true;
                        }
                        
                        instanceWrapper = null;
index 4f5ac86d7e468df11a5d06773803f0a3438089af..d017319290834e409f659b9303c2c75df04e9d03 100644 (file)
@@ -80,7 +80,6 @@ namespace System.Net.NetworkInformation {
                        try {
                                gateways = new IPAddressCollection ();
                                using (StreamReader reader = new StreamReader ("/proc/net/route")) {
-                                       string str;
                                        string line;
                                        reader.ReadLine (); // Ignore first line
                                        while ((line = reader.ReadLine ()) != null) {
index 19bde8f1259da67627eee8b13990267936eb0b6e..4f7f7b7b998d1dec0ccc58a39c56a97efa6156ef 100644 (file)
@@ -288,7 +288,6 @@ namespace System.Net.NetworkInformation {
                        ping.StartInfo.RedirectStandardOutput = true;
                        ping.StartInfo.RedirectStandardError = true;
 
-                       DateTime start = DateTime.UtcNow;
                        try {
                                ping.Start ();
 
index ac1f8e2c881405a12263b40005986bd58af502a8..99fb1a94722088df658f2ededaaba22a3cf7bb26 100644 (file)
@@ -684,7 +684,7 @@ namespace System.Net.Sockets
                                }
 
                                // Remove non-signaled sockets before the current one
-                               int max = currentList.Count;
+                               //int max = currentList.Count;
                                while ((cur_sock = (Socket) currentList [currentIdx]) != sock) {
                                        currentList.RemoveAt (currentIdx);
                                }
index 482c7f916e259fcc27d05dcdfc3e5bf268c168ea..6a15d454eac849cdeaa5fb484166a601bced0f79 100644 (file)
@@ -229,7 +229,7 @@ namespace System.Net {
                        try {
                                line = ReadLine (buffer, position, len - position, ref used);
                                position += used;
-                       } catch (Exception e) {
+                       } catch {
                                context.ErrorMessage = "Bad request";
                                context.ErrorStatus = 400;
                                return true;
@@ -267,7 +267,7 @@ namespace System.Net {
                                try {
                                        line = ReadLine (buffer, position, len - position, ref used);
                                        position += used;
-                               } catch (Exception e) {
+                               } catch {
                                        context.ErrorMessage = "Bad request";
                                        context.ErrorStatus = 400;
                                        return true;
index 8ada916e77a263bb35464a71e50effc0dd154068..e126f84857bc04be2e5cdda72c10c3cbb7c90ea6 100644 (file)
@@ -279,7 +279,7 @@ namespace System.Net
                                if (request != null)
                                        request.Abort ();
                                throw;
-                       } catch (WebException wexc) {
+                       } catch (WebException) {
                                throw;
                        } catch (Exception ex) {
                                throw new WebException ("An error occurred " +
@@ -317,7 +317,7 @@ namespace System.Net
                                async = false;
 #endif                         
                                DownloadFileCore (address, fileName, null);
-                       } catch (WebException wexc) {
+                       } catch (WebException) {
                                throw;
                        } catch (Exception ex) {
                                throw new WebException ("An error occurred " +
@@ -395,7 +395,7 @@ namespace System.Net
                                request = SetupRequest (address);
                                WebResponse response = GetWebResponse (request);
                                return response.GetResponseStream ();
-                       } catch (WebException wexc) {
+                       } catch (WebException) {
                                throw;
                        } catch (Exception ex) {
                                throw new WebException ("An error occurred " +
@@ -452,7 +452,7 @@ namespace System.Net
 #endif                         
                                WebRequest request = SetupRequest (address, method, true);
                                return request.GetRequestStream ();
-                       } catch (WebException wexc) {
+                       } catch (WebException) {
                                throw;
                        } catch (Exception ex) {
                                throw new WebException ("An error occurred " +
@@ -602,7 +602,7 @@ namespace System.Net
                                async = false;
 #endif                         
                                return UploadFileCore (address, method, fileName, null);
-                       } catch (WebException wexc) {
+                       } catch (WebException) {
                                throw;
                        } catch (Exception ex) {
                                throw new WebException ("An error occurred " +
@@ -725,7 +725,7 @@ namespace System.Net
                                async = false;
 #endif                         
                                return UploadValuesCore (address, method, data, null);
-                       } catch (WebException wexc) {
+                       } catch (WebException) {
                                throw;
                        } catch (Exception ex) {
                                throw new WebException ("An error occurred " +