changeset 6172:d30c13172254

8003951: Removes unused variables in sun.security.ssl Reviewed-by: xuelei Contributed-by: Florian Weimer <fweimer@redhat.com>
author xuelei
date Sat, 24 Nov 2012 04:27:28 -0800
parents f7d45462b225
children 8970128e040d
files src/share/classes/sun/security/ssl/HandshakeMessage.java src/share/classes/sun/security/ssl/JsseJce.java src/share/classes/sun/security/ssl/SSLServerSocketImpl.java src/share/classes/sun/security/ssl/SSLSessionContextImpl.java src/share/classes/sun/security/ssl/SSLSocketFactoryImpl.java src/share/classes/sun/security/ssl/X509TrustManagerImpl.java
diffstat 6 files changed, 0 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/sun/security/ssl/HandshakeMessage.java	Sat Nov 24 04:09:19 2012 -0800
+++ b/src/share/classes/sun/security/ssl/HandshakeMessage.java	Sat Nov 24 04:27:28 2012 -0800
@@ -394,8 +394,6 @@
             s.print("RandomCookie:  ");
             svr_random.print(s);
 
-            int i;
-
             s.print("Session ID:  ");
             s.println(sessionId);
 
--- a/src/share/classes/sun/security/ssl/JsseJce.java	Sat Nov 24 04:09:19 2012 -0800
+++ b/src/share/classes/sun/security/ssl/JsseJce.java	Sat Nov 24 04:27:28 2012 -0800
@@ -54,8 +54,6 @@
  */
 final class JsseJce {
 
-    private final static Debug debug = Debug.getInstance("ssl");
-
     private final static ProviderList fipsProviderList;
 
     // Flag indicating whether EC crypto is available.
--- a/src/share/classes/sun/security/ssl/SSLServerSocketImpl.java	Sat Nov 24 04:09:19 2012 -0800
+++ b/src/share/classes/sun/security/ssl/SSLServerSocketImpl.java	Sat Nov 24 04:27:28 2012 -0800
@@ -82,9 +82,6 @@
     /* which protocol to use by default */
     private ProtocolList        enabledProtocols = null;
 
-    /* could enabledCipherSuites ever complete handshaking? */
-    private boolean             checkedEnabled = false;
-
     // the endpoint identification protocol to use by default
     private String              identificationProtocol = null;
 
@@ -195,7 +192,6 @@
     @Override
     synchronized public void setEnabledCipherSuites(String[] suites) {
         enabledCipherSuites = new CipherSuiteList(suites);
-        checkedEnabled = false;
     }
 
     @Override
--- a/src/share/classes/sun/security/ssl/SSLSessionContextImpl.java	Sat Nov 24 04:09:19 2012 -0800
+++ b/src/share/classes/sun/security/ssl/SSLSessionContextImpl.java	Sat Nov 24 04:27:28 2012 -0800
@@ -44,8 +44,6 @@
     private int cacheLimit;             // the max cache size
     private int timeout;                // timeout in seconds
 
-    private static final Debug debug = Debug.getInstance("ssl");
-
     // package private
     SSLSessionContextImpl() {
         cacheLimit = getDefaultCacheLimit();    // default cache size
--- a/src/share/classes/sun/security/ssl/SSLSocketFactoryImpl.java	Sat Nov 24 04:09:19 2012 -0800
+++ b/src/share/classes/sun/security/ssl/SSLSocketFactoryImpl.java	Sat Nov 24 04:27:28 2012 -0800
@@ -43,7 +43,6 @@
  */
 final public class SSLSocketFactoryImpl extends SSLSocketFactory {
 
-    private static SSLContextImpl defaultContext;
     private SSLContextImpl context;
 
     /**
--- a/src/share/classes/sun/security/ssl/X509TrustManagerImpl.java	Sat Nov 24 04:09:19 2012 -0800
+++ b/src/share/classes/sun/security/ssl/X509TrustManagerImpl.java	Sat Nov 24 04:27:28 2012 -0800
@@ -346,7 +346,6 @@
                 } catch (IllegalArgumentException iae) {
                     // unlikely to happen, just in case ...
                     if ((debug != null) && Debug.isOn("trustmanager")) {
-                        byte[] encoded = hostname.getEncoded();
                         System.out.println("Illegal server name: " + sniName);
                     }
                 }