BUG-7568: cleanup BasicCodeGenerator
[yangtools.git] / yang / yang-maven-plugin-spi / src / main / java / org / opendaylight / yangtools / yang2sources / spi / BasicCodeGenerator.java
index c50f176cd49ae6863f5883f9398a9f6419f9e0fb..9c07db36be5069be61006f619ee3f72137bd71bb 100644 (file)
@@ -22,25 +22,6 @@ import org.opendaylight.yangtools.yang.model.api.SchemaContext;
  * a logger instance around.
  */
 public interface BasicCodeGenerator {
-    /**
-     * Generate sources from provided {@link SchemaContext}.
-     *
-     * @param context
-     *            parsed from YANG files
-     * @param outputBaseDir
-     *            expected output directory for generated sources configured by
-     *            user
-     * @param currentModules
-     *            YANG modules parsed from yangFilesRootDir
-     * @return collection of files that were generated from schema context
-     * @throws IOException
-     *
-     * @deprecated Implement {@link #generateSources(SchemaContext, File, Set, Function)} instead.
-     */
-    @Deprecated
-    Collection<File> generateSources(SchemaContext context, File outputBaseDir, Set<Module> currentModules)
-            throws IOException;
-
     /**
      * Generate sources from provided {@link SchemaContext}.
      *
@@ -55,11 +36,8 @@ public interface BasicCodeGenerator {
      *            Function converting a local module to the packaged resource path
      * @return collection of files that were generated from schema context
      */
-    default Collection<File> generateSources(final SchemaContext context, final File outputBaseDir,
-            final Set<Module> currentModules,
-            final Function<Module, Optional<String>> moduleResourcePathResolver) throws IOException {
-        return generateSources(context, outputBaseDir, currentModules);
-    }
+    Collection<File> generateSources(SchemaContext context, File outputBaseDir, Set<Module> currentModules,
+            Function<Module, Optional<String>> moduleResourcePathResolver) throws IOException;
 
     /**
      * Provided map contains all configuration that was set in pom for code