From: "Enrico Weigelt, metux IT consult" <enrico.weig...@gr13.net>

---
 .../sf/freecol/common/util/CollectionUtils.java    | 26 ----------------------
 1 file changed, 26 deletions(-)

diff --git a/src/net/sf/freecol/common/util/CollectionUtils.java 
b/src/net/sf/freecol/common/util/CollectionUtils.java
index 1a265516d81..03a7cf47c7f 100644
--- a/src/net/sf/freecol/common/util/CollectionUtils.java
+++ b/src/net/sf/freecol/common/util/CollectionUtils.java
@@ -733,32 +733,6 @@ public class CollectionUtils {
     }
 
     /**
-     * Create a stream of files from a directory.
-     *
-     * @param dir The {@code File} that hopefully is a directory.
-     * @return A stream of {@code File}s.
-     */
-    public static Stream<File> fileStream(File dir) {
-        File[] files;
-        return (dir == null || !dir.isDirectory()
-            || (files = dir.listFiles()) == null)
-            ? Stream.<File>empty()
-            : Arrays.stream(files);
-    }
-
-    /**
-     * Create a stream of files from a directory, that each match a predicate.
-     *
-     * @param dir The {@code File} that hopefully is a directory.
-     * @param predicate The {@code Predicate} to match with.
-     * @return A stream of matching {@code File}s.
-     */
-    public static Stream<File> fileStream(File dir,
-                                          Predicate<? super File> predicate) {
-        return fileStream(dir).filter(predicate);
-    }
-
-    /**
      * Simple stream search for the first item that matches a predicate.
      *
      * @param <T> The array member type.
-- 
2.11.0.rc0.7.gbe5a750


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Freecol-developers mailing list
Freecol-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freecol-developers

Reply via email to