summaryrefslogtreecommitdiffstats
path: root/base/ocsp/src/com
diff options
context:
space:
mode:
authorEndi Sukma Dewata <edewata@redhat.com>2012-04-09 13:56:59 -0500
committerEndi Sukma Dewata <edewata@redhat.com>2012-04-12 10:16:22 -0500
commit7d88f4ee050856b8fef5f260cfe1b3aeec201fda (patch)
tree9d0b80dcbcc63ccb83d32995376168dcd086bab9 /base/ocsp/src/com
parent3f24e55923fc986af4c6a08b2b8d45704a905627 (diff)
downloadpki-7d88f4ee050856b8fef5f260cfe1b3aeec201fda.tar.gz
pki-7d88f4ee050856b8fef5f260cfe1b3aeec201fda.tar.xz
pki-7d88f4ee050856b8fef5f260cfe1b3aeec201fda.zip
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
Diffstat (limited to 'base/ocsp/src/com')
-rw-r--r--base/ocsp/src/com/netscape/ocsp/OCSPAuthority.java2
-rw-r--r--base/ocsp/src/com/netscape/ocsp/SigningUnit.java3
2 files changed, 2 insertions, 3 deletions
diff --git a/base/ocsp/src/com/netscape/ocsp/OCSPAuthority.java b/base/ocsp/src/com/netscape/ocsp/OCSPAuthority.java
index 348a1b2f8..836907dac 100644
--- a/base/ocsp/src/com/netscape/ocsp/OCSPAuthority.java
+++ b/base/ocsp/src/com/netscape/ocsp/OCSPAuthority.java
@@ -76,7 +76,6 @@ import com.netscape.cmsutil.ocsp.ResponseData;
*/
public class OCSPAuthority implements IOCSPAuthority, IOCSPService, ISubsystem, IAuthority {
- private long mServedRequests = 0;
private long mServedTime = 0;
public final static OBJECT_IDENTIFIER OCSP_NONCE = new OBJECT_IDENTIFIER("1.3.6.1.5.5.7.48.1.2");
@@ -361,7 +360,6 @@ public class OCSPAuthority implements IOCSPAuthority, IOCSPService, ISubsystem,
OCSPResponse response = mDefStore.validate(request);
long endTime = (CMS.getCurrentDate()).getTime();
- mServedRequests++;
mServedTime = mServedTime + (endTime - startTime);
return response;
}
diff --git a/base/ocsp/src/com/netscape/ocsp/SigningUnit.java b/base/ocsp/src/com/netscape/ocsp/SigningUnit.java
index 4b6e7da75..0413f0c5c 100644
--- a/base/ocsp/src/com/netscape/ocsp/SigningUnit.java
+++ b/base/ocsp/src/com/netscape/ocsp/SigningUnit.java
@@ -73,7 +73,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;