Browse Source

2005-04-20 Gonzalo Paniagua Javier <[email protected]>

	* SmtpClient.cs:
	* SmtpStream.cs: removed warnings.


svn path=/trunk/mcs/; revision=43362
Gonzalo Paniagua Javier 21 years ago
parent
commit
d350ba9efd

+ 5 - 0
mcs/class/System.Web/System.Web.Mail/ChangeLog

@@ -1,3 +1,8 @@
+2005-04-20 Gonzalo Paniagua Javier <[email protected]>
+
+	* SmtpClient.cs:
+	* SmtpStream.cs: removed warnings.
+
 2005-01-28  Lluis Sanchez Gual <[email protected]>
 
 	* Base64AttachmentEncoder.cs: Fixed warning.

+ 0 - 3
mcs/class/System.Web/System.Web.Mail/SmtpClient.cs

@@ -42,14 +42,11 @@ namespace System.Web.Mail {
 	private string server;
 	private TcpClient tcpConnection;
 	private SmtpStream smtp;
-	private Encoding encoding;
 	
 	//Initialise the variables and connect
 	public SmtpClient( string server ) {
 	    
 	    this.server = server;
-	    encoding = new ASCIIEncoding( );
-
 	    Connect();
 	}
 	

+ 2 - 0
mcs/class/System.Web/System.Web.Mail/SmtpStream.cs

@@ -195,10 +195,12 @@ namespace System.Web.Mail {
 	    #endif
 	}
 	
+    #if DEBUG
 	/// debug printing 
 	private void DebugPrint( string line ) {
 	    Console.WriteLine( "smtp: {0}" , line );
 	}
+    #endif
 
     }