From 7d88f4ee050856b8fef5f260cfe1b3aeec201fda Mon Sep 17 00:00:00 2001 From: Endi Sukma Dewata Date: Mon, 9 Apr 2012 13:56:59 -0500 Subject: Removed unused private fields. Most of unused private fields have been removed because they generate warnings in Eclipse. Some are kept because it might be useful later. Ticket #139 --- base/ca/src/com/netscape/ca/CMSCRLExtensions.java | 3 ++- base/ca/src/com/netscape/ca/CRLIssuingPoint.java | 11 ++++------- base/ca/src/com/netscape/ca/SigningUnit.java | 3 ++- 3 files changed, 8 insertions(+), 9 deletions(-) (limited to 'base/ca/src/com') diff --git a/base/ca/src/com/netscape/ca/CMSCRLExtensions.java b/base/ca/src/com/netscape/ca/CMSCRLExtensions.java index bbb4e5f19..507faa8e8 100644 --- a/base/ca/src/com/netscape/ca/CMSCRLExtensions.java +++ b/base/ca/src/com/netscape/ca/CMSCRLExtensions.java @@ -65,7 +65,8 @@ public class CMSCRLExtensions implements ICMSCRLExtensions { private ICRLIssuingPoint mCRLIssuingPoint = null; - private IConfigStore mConfig = null; + @SuppressWarnings("unused") + private IConfigStore mConfig; private IConfigStore mCRLExtConfig = null; private Vector mCRLExtensionNames = new Vector(); diff --git a/base/ca/src/com/netscape/ca/CRLIssuingPoint.java b/base/ca/src/com/netscape/ca/CRLIssuingPoint.java index f2ca2026c..f93e6e31b 100644 --- a/base/ca/src/com/netscape/ca/CRLIssuingPoint.java +++ b/base/ca/src/com/netscape/ca/CRLIssuingPoint.java @@ -277,7 +277,6 @@ public class CRLIssuingPoint implements ICRLIssuingPoint, Runnable { */ private Date mLastUpdate; private Date mLastFullUpdate; - private long mLastScheduledUpdate = 0; /** * Next scheduled CRL update date @@ -1904,7 +1903,7 @@ public class CRLIssuingPoint implements ICRLIssuingPoint, Runnable { Debug.trace("recoverCRLCache size=" + list.getSize() + " index=" + list.getCurrentIndex()); } - CertRecProcessor cp = new CertRecProcessor(mCRLCerts, this, mLogger, mAllowExtensions); + CertRecProcessor cp = new CertRecProcessor(mCRLCerts, this, mAllowExtensions); boolean includeCert = true; int s = list.getSize() - list.getCurrentIndex(); @@ -2117,7 +2116,7 @@ public class CRLIssuingPoint implements ICRLIssuingPoint, Runnable { public void addRevokedCert(BigInteger serialNumber, RevokedCertImpl revokedCert, String requestId) { - CertRecProcessor cp = new CertRecProcessor(mCRLCerts, this, mLogger, mAllowExtensions); + CertRecProcessor cp = new CertRecProcessor(mCRLCerts, this, mAllowExtensions); boolean includeCert = true; if (cp != null) includeCert = cp.checkRevokedCertExtensions(revokedCert.getExtensions()); @@ -2405,7 +2404,7 @@ public class CRLIssuingPoint implements ICRLIssuingPoint, Runnable { if (statsSub != null) { statsSub.startTiming("generation"); } - CertRecProcessor cp = new CertRecProcessor(mCRLCerts, this, mLogger, mAllowExtensions); + CertRecProcessor cp = new CertRecProcessor(mCRLCerts, this, mAllowExtensions); processRevokedCerts(cp); if (statsSub != null) { @@ -2956,17 +2955,15 @@ public class CRLIssuingPoint implements ICRLIssuingPoint, Runnable { class CertRecProcessor implements IElementProcessor { private Hashtable mCRLCerts = null; private boolean mAllowExtensions = false; - private ILogger mLogger; private CRLIssuingPoint mIP = null; private boolean mIssuingDistPointAttempted = false; private boolean mIssuingDistPointEnabled = false; private BitArray mOnlySomeReasons = null; - public CertRecProcessor(Hashtable crlCerts, CRLIssuingPoint ip, ILogger logger, + public CertRecProcessor(Hashtable crlCerts, CRLIssuingPoint ip, boolean allowExtensions) { mCRLCerts = crlCerts; - mLogger = logger; mIP = ip; mAllowExtensions = allowExtensions; mIssuingDistPointAttempted = false; diff --git a/base/ca/src/com/netscape/ca/SigningUnit.java b/base/ca/src/com/netscape/ca/SigningUnit.java index 85ee1d482..2466fb652 100644 --- a/base/ca/src/com/netscape/ca/SigningUnit.java +++ b/base/ca/src/com/netscape/ca/SigningUnit.java @@ -77,7 +77,8 @@ public final class SigningUnit implements ISigningUnit { private ILogger mLogger = CMS.getLogger(); private IConfigStore mConfig; - private ISubsystem mOwner = null; + @SuppressWarnings("unused") + private ISubsystem mOwner; private String mDefSigningAlgname = null; private SignatureAlgorithm mDefSigningAlgorithm = null; -- cgit