Bump to yangtools-2.0.0 and odlparent-3.0.2
[neutron.git] / neutron-hostconfig / utils / src / main / java / org / opendaylight / neutron / hostconfig / utils / NeutronHostconfigUtils.java
index fcab6e31ce3d06f26d7302e62a171e7e2827f5b6..c42aa0d4020488fd221f873181b8361366937782 100644 (file)
@@ -8,9 +8,6 @@
 
 package org.opendaylight.neutron.hostconfig.utils;
 
-import java.text.ParseException;
-import java.text.SimpleDateFormat;
-import java.util.Date;
 import java.util.concurrent.ExecutionException;
 
 import org.opendaylight.controller.md.sal.binding.api.DataBroker;
@@ -80,16 +77,4 @@ public class NeutronHostconfigUtils {
         return InstanceIdentifier.create(Neutron.class).child(Hostconfigs.class)
                 .child(Hostconfig.class, hostconfig.getKey());
     }
-
-    /**
-     * Used for parsing model revisions.
-     */
-    public static Date parseDate(final String strDate) {
-        final SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
-        try {
-            return formatter.parse(strDate);
-        } catch (final ParseException e) {
-            throw new IllegalArgumentException("Date " + strDate + " not valid.", e);
-        }
-    }
 }