summaryrefslogtreecommitdiffstats
path: root/pki/base/common/src/com/netscape/cms
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 /pki/base/common/src/com/netscape/cms
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
Diffstat (limited to 'pki/base/common/src/com/netscape/cms')
-rw-r--r--pki/base/common/src/com/netscape/cms/jobs/RenewalNotificationJob.java24
1 files changed, 0 insertions, 24 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