diff --git a/src/main/java/com/kosherjava/zmanim/util/ZmanimFormatter.java b/src/main/java/com/kosherjava/zmanim/util/ZmanimFormatter.java index aa83b743..b0b4c2d5 100644 --- a/src/main/java/com/kosherjava/zmanim/util/ZmanimFormatter.java +++ b/src/main/java/com/kosherjava/zmanim/util/ZmanimFormatter.java @@ -302,7 +302,7 @@ public String formatDateTime(Date dateTime, Calendar calendar) { * @return the XSD dateTime * @deprecated This method will be removed in v3.0 */ - @Deprecated (since="2.5", forRemoval=true) + @Deprecated // (since="2.5", forRemoval=true)// add back once Java 9 is the minimum supported version public String getXSDateTime(Date date, Calendar calendar) { return getXSDateTime(date); } @@ -318,18 +318,6 @@ public String getXSDateTime(Date date) { return new StringBuilder(dateFormat.format(date)).toString(); } - /** - * Represent the hours and minutes with two-digit strings. - * - * @param digits - * hours or minutes. - * @return two-digit String representation of hrs or minutes. - */ - private static String formatDigits(int digits) { - String dd = String.valueOf(Math.abs(digits)); - return dd.length() == 1 ? '0' + dd : dd; - } - /** * This returns the xml representation of an xsd:duration object. *