removed unread private field mSecure

This commit is contained in:
András Veres-Szentkirályi 2012-07-06 15:04:46 +02:00
parent 2f918c2307
commit d0c08fb705

View file

@ -188,7 +188,6 @@ public class SmtpTransport extends Transport {
String mPassword; String mPassword;
String mAuthType; String mAuthType;
int mConnectionSecurity; int mConnectionSecurity;
boolean mSecure;
Socket mSocket; Socket mSocket;
PeekableInputStream mIn; PeekableInputStream mIn;
OutputStream mOut; OutputStream mOut;
@ -245,7 +244,6 @@ public class SmtpTransport extends Transport {
}, new SecureRandom()); }, new SecureRandom());
mSocket = sslContext.getSocketFactory().createSocket(); mSocket = sslContext.getSocketFactory().createSocket();
mSocket.connect(socketAddress, SOCKET_CONNECT_TIMEOUT); mSocket.connect(socketAddress, SOCKET_CONNECT_TIMEOUT);
mSecure = true;
} else { } else {
mSocket = new Socket(); mSocket = new Socket();
mSocket.connect(socketAddress, SOCKET_CONNECT_TIMEOUT); mSocket.connect(socketAddress, SOCKET_CONNECT_TIMEOUT);
@ -308,7 +306,6 @@ public class SmtpTransport extends Transport {
mIn = new PeekableInputStream(new BufferedInputStream(mSocket.getInputStream(), mIn = new PeekableInputStream(new BufferedInputStream(mSocket.getInputStream(),
1024)); 1024));
mOut = mSocket.getOutputStream(); mOut = mSocket.getOutputStream();
mSecure = true;
/* /*
* Now resend the EHLO. Required by RFC2487 Sec. 5.2, and more specifically, * Now resend the EHLO. Required by RFC2487 Sec. 5.2, and more specifically,
* Exim. * Exim.