Browse Source

2003-07-15 Andreas Nahr <[email protected]>

	* ChunkStream.cs: Removed unused members
	* IPAddress.cs: Removed unused exception variable, fixes compiler warning
	* WebConnection.cs: Removed unused exception variables, fixes compiler warnings

svn path=/trunk/mcs/; revision=16260
Andreas N 22 years ago
parent
commit
84c5f4a194

+ 6 - 0
mcs/class/System/System.Net/ChangeLog

@@ -1,3 +1,9 @@
+2003-07-15  Andreas Nahr <[email protected]>
+
+	* ChunkStream.cs: Removed unused members
+	* IPAddress.cs: Removed unused exception variable, fixes compiler warning
+	* WebConnection.cs: Removed unused exception variables, fixes compiler warnings
+
 2003-07-14  Lluis Sanchez Gual <[email protected]>
 
 	* NetConfig.cs: If Clone method is not public, then it must use

+ 1 - 2
mcs/class/System/System.Net/ChunkStream.cs

@@ -27,7 +27,7 @@ namespace System.Net
 		int chunkSize;
 		int chunkRead;
 		State state;
-		byte [] waitBuffer;
+		//byte [] waitBuffer;
 		StringBuilder saved;
 		bool sawCR;
 		bool gotit;
@@ -193,7 +193,6 @@ namespace System.Net
 		State ReadTrailer (byte [] buffer, ref int offset, int size)
 		{
 			char c = '\0';
-			bool empty = false;
 
 			// short path
 			if ((char) buffer [offset] == '\r') {

+ 1 - 1
mcs/class/System/System.Net/IPAddress.cs

@@ -217,7 +217,7 @@ namespace System.Net {
 				IPv6Address newIPv6Address = IPv6Address.Parse(ip);
 				return new IPAddress(newIPv6Address.Address, newIPv6Address.ScopeId);
 			}
-			catch(Exception e) {
+			catch (Exception) {
 				return null;
 			}
 		}

+ 4 - 4
mcs/class/System/System.Net/WebConnection.cs

@@ -88,7 +88,7 @@ namespace System.Net
 							status = WebExceptionStatus.Success;
 							break;
 						} 
-						catch (SocketException e2) {
+						catch (SocketException) {
 							socket.Close();
 							status = WebExceptionStatus.ConnectFailure;
 						}
@@ -104,7 +104,7 @@ namespace System.Net
 			//TODO: create stream for https
 			try {
 				nstream = new NetworkStream (socket, false);
-			} catch (Exception e) {
+			} catch (Exception) {
 				status = WebExceptionStatus.ConnectFailure;
 				return false;
 			}
@@ -461,7 +461,7 @@ namespace System.Net
 			if (!chunkedRead || chunkStream.WantMore) {
 				try {
 					result = nstream.BeginRead (buffer, offset, size, cb, state);
-				} catch (Exception e) {
+				} catch (Exception) {
 					status = WebExceptionStatus.ReceiveFailure;
 					throw;
 				}
@@ -502,7 +502,7 @@ namespace System.Net
 
 			try {
 				result = nstream.BeginWrite (buffer, offset, size, cb, state);
-			} catch (Exception e) {
+			} catch (Exception) {
 				status = WebExceptionStatus.SendFailure;
 				throw;
 			}