Author: gert
Date: 2007-10-15 11:48:09 -0400 (Mon, 15 Oct 2007)
New Revision: 87518

Modified:
   trunk/mcs/class/System/System.Net/ChangeLog
   trunk/mcs/class/System/System.Net/WebRequest.cs
Log:
Remove commented code.


Modified: trunk/mcs/class/System/System.Net/ChangeLog
===================================================================
--- trunk/mcs/class/System/System.Net/ChangeLog 2007-10-15 15:46:36 UTC (rev 
87517)
+++ trunk/mcs/class/System/System.Net/ChangeLog 2007-10-15 15:48:09 UTC (rev 
87518)
@@ -2,7 +2,7 @@
 
        * WebRequest.cs: Changed serialization ctor to throw NIE on 1.0
        profile. Cache default proxy, but still allow it to be explicitly set
-       to null.
+       to null. Removed commented code.
 
 2007-10-14 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
 

Modified: trunk/mcs/class/System/System.Net/WebRequest.cs
===================================================================
--- trunk/mcs/class/System/System.Net/WebRequest.cs     2007-10-15 15:46:36 UTC 
(rev 87517)
+++ trunk/mcs/class/System/System.Net/WebRequest.cs     2007-10-15 15:48:09 UTC 
(rev 87518)
@@ -196,10 +196,6 @@
                                /* MS documentation states that a null value 
would cause an ArgumentNullException
                                 * but that's not the way it behaves:
                                 * 
https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=304724
-                               if (value == null)
-                                       throw new ArgumentNullException 
("WebRequest.DefaultWebProxy",
-                                                       "null IWebProxy not 
allowed.");
-                               */
                                defaultWebProxy = value;
                                isDefaultWebProxySet = true;
                        }
@@ -323,9 +319,9 @@
                public static bool RegisterPrefix (string prefix, 
IWebRequestCreate creator)
                {
                        if (prefix == null)
-                               throw new ArgumentNullException("prefix");
+                               throw new ArgumentNullException ("prefix");
                        if (creator == null)
-                               throw new ArgumentNullException("creator");
+                               throw new ArgumentNullException ("creator");
                        
                        lock (prefixes.SyncRoot) {
                                string lowerCasePrefix = prefix.ToLower 
(CultureInfo.InvariantCulture);

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to