BUG-4688: eliminate SimpleDateFormatUtil.DEFAULT_DATE_REV
[yangtools.git] / yang / yang-common / src / main / java / org / opendaylight / yangtools / yang / common / SimpleDateFormatUtil.java
index d98926d4464c59e9eff67b49305d127ea5f8131b..2d8df756c0ad69463c74f63c1c560dd62e7e1f80 100644 (file)
@@ -8,9 +8,7 @@
 
 package org.opendaylight.yangtools.yang.common;
 
-import java.text.ParseException;
 import java.text.SimpleDateFormat;
-import java.util.Date;
 
 public final class SimpleDateFormatUtil {
 
@@ -19,26 +17,6 @@ public final class SimpleDateFormatUtil {
      */
     private static final String REVISION_SIMPLE_DATE = "yyyy-MM-dd";
 
-    /**
-     * default Yang date that is used when date is not present.
-     */
-    private static final String DEFAULT_DATE = "1970-01-01";
-
-    /**
-     * {@link SimpleDateFormatUtil#DEFAULT_DATE} for revision statement.
-     */
-    public static final Date DEFAULT_DATE_REV;
-
-    static {
-        final SimpleDateFormat simpleDateFormat = new SimpleDateFormat(REVISION_SIMPLE_DATE);
-
-        try {
-            DEFAULT_DATE_REV = simpleDateFormat.parse(DEFAULT_DATE);
-        } catch (final ParseException e) {
-            throw new ExceptionInInitializerError(e);
-        }
-    }
-
     private SimpleDateFormatUtil() {
         throw new UnsupportedOperationException("Utility class should not be instantiated");
     }