summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Young <ayoung@redhat.com>2011-11-10 21:41:08 -0500
committerAdam Young <ayoung@redhat.com>2011-12-22 11:52:43 -0500
commite543b0b5d9957cad4256b69932eeccf538bab88e (patch)
treefcb1765b86fc62cbe53592bc80534381b0958505
parent39ce529501218365fefcb0f8d2e80db2368d062b (diff)
downloadpki-e543b0b5d9957cad4256b69932eeccf538bab88e.tar.gz
pki-e543b0b5d9957cad4256b69932eeccf538bab88e.tar.xz
pki-e543b0b5d9957cad4256b69932eeccf538bab88e.zip
Removal of unused private methods
These methods are uncallable. There might be some discussion about the private default constructores. The Rules of Java are different from C++: If there is any constructor defined, all the other defaults befome uncallable. Thus, the private default constructors are not needed. https://bugzilla.redhat.com/show_bug.cgi?id=728303
-rw-r--r--pki/base/common/src/com/netscape/cms/jobs/RenewalNotificationJob.java24
-rw-r--r--pki/base/silent/src/com/netscape/pkisilent/common/checkRequest.java16
2 files changed, 1 insertions, 39 deletions
diff --git a/pki/base/common/src/com/netscape/cms/jobs/RenewalNotificationJob.java b/pki/base/common/src/com/netscape/cms/jobs/RenewalNotificationJob.java
index 9b391b515..8649cf23a 100644
--- a/pki/base/common/src/com/netscape/cms/jobs/RenewalNotificationJob.java
+++ b/pki/base/common/src/com/netscape/cms/jobs/RenewalNotificationJob.java
@@ -488,30 +488,6 @@ public class RenewalNotificationJob
}
}
- private String makeLDAPDateString(Date date) {
-
- Calendar calendar = Calendar.getInstance();
- calendar.setTime(date);
-
- String ldfYear = "" + Integer.toString(calendar.get(Calendar.YEAR) - 1900);
-
- String ldfMonth = getPadded(calendar.get(Calendar.MONTH));
- String ldfDate = getPadded(calendar.get(Calendar.DAY_OF_MONTH));
- String ldfHours = getPadded(calendar.get(Calendar.HOUR));
- String ldfMinutes = getPadded(calendar.get(Calendar.MINUTE));
- String ldfSeconds = getPadded(calendar.get(Calendar.SECOND));
-
- return ldfYear + ldfMonth + ldfDate + ldfHours + ldfMinutes + ldfSeconds + "Z";
- }
-
- private String getPadded(int i) {
- if (i < 10) {
- return "0" + Integer.toString(i);
- } else {
- return "" + Integer.toString(i);
- }
- }
-
/**
* get instance id.
* @return a String identifier
diff --git a/pki/base/silent/src/com/netscape/pkisilent/common/checkRequest.java b/pki/base/silent/src/com/netscape/pkisilent/common/checkRequest.java
index f2a71085e..c67689e42 100644
--- a/pki/base/silent/src/com/netscape/pkisilent/common/checkRequest.java
+++ b/pki/base/silent/src/com/netscape/pkisilent/common/checkRequest.java
@@ -153,10 +153,6 @@ public class checkRequest extends TestClient {
return reqStatus;
}
- private long getElapsedTime() {
- return elapsedTime;
- }
-
/**
* returns the hex serial number of the certificate
**/
@@ -239,17 +235,7 @@ public class checkRequest extends TestClient {
return false;
}
- private boolean checkRequest_load() {
-
- type = 1;
- buildquery();
- if (debug) {
- System.out.println(query);
- }
- setStatusString("Congratulations, your certificate has been issued");
- return(Send());
-
- }
+
// Private functions