From bad569349715a828af7741717fbcca7dabb3a7b2 Mon Sep 17 00:00:00 2001 From: Kevin Feichtinger Date: Thu, 28 Nov 2024 13:50:45 +0100 Subject: [PATCH] removed duplicated method --- .../jku/cps/travart/core/helpers/TraVarTUtils.java | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/main/java/at/jku/cps/travart/core/helpers/TraVarTUtils.java b/src/main/java/at/jku/cps/travart/core/helpers/TraVarTUtils.java index 08b855d..ebbad49 100644 --- a/src/main/java/at/jku/cps/travart/core/helpers/TraVarTUtils.java +++ b/src/main/java/at/jku/cps/travart/core/helpers/TraVarTUtils.java @@ -22,8 +22,6 @@ import java.io.IOException; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; -import java.nio.file.Files; -import java.nio.file.Path; import java.util.Arrays; import java.util.Collection; import java.util.HashMap; @@ -1394,15 +1392,4 @@ public static Logger getSimpleLogger(final String className, final String logFil logger.addHandler(fh); return logger; } - - /** - * Gets the list of paths in the path which matches the file extension - * - * @param path the path where we need the list of files - * @param extension the file extension - */ - public static Set getPathSet(final Path path, final String extension) throws IOException { - return Files.walk(path).filter(Files::isRegularFile).filter(f -> f.getFileName().toString().endsWith(extension)) - .collect(Collectors.toSet()); - } } \ No newline at end of file