Remove StmtTestUtils.findModules()
[yangtools.git] / parser / yang-parser-rfc7950 / src / test / java / org / opendaylight / yangtools / yang / stmt / StmtTestUtils.java
index 72acef86ac112d0dcbcec47dcae55b18bde5a019..cf334d9a430b8624dd6c4427ca313ec441d41ece 100644 (file)
@@ -17,7 +17,6 @@ import java.nio.file.Path;
 import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.Collection;
-import java.util.List;
 import java.util.Set;
 import org.opendaylight.yangtools.yang.common.QName;
 import org.opendaylight.yangtools.yang.common.YangConstants;
@@ -65,16 +64,6 @@ public final class StmtTestUtils {
         }
     }
 
-    public static List<Module> findModules(final Collection<? extends Module> modules, final String moduleName) {
-        final List<Module> result = new ArrayList<>();
-        for (final Module module : modules) {
-            if (module.getName().equals(moduleName)) {
-                result.add(module);
-            }
-        }
-        return result;
-    }
-
     public static YangStatementStreamSource sourceForResource(final String resourceName) {
         try {
             return YangStatementStreamSource.create(YangTextSchemaSource.forPath(Path.of(