You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tamaya.apache.org by pl...@apache.org on 2015/01/17 11:02:27 UTC

incubator-tamaya git commit: TAMAYA-53 Removed unused private method.

Repository: incubator-tamaya
Updated Branches:
  refs/heads/master 23484fcc6 -> b44509c6c


TAMAYA-53 Removed unused private method.


Project: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/commit/b44509c6
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/tree/b44509c6
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/diff/b44509c6

Branch: refs/heads/master
Commit: b44509c6c1d74c7058ea5ba1225eb9b942151f69
Parents: 23484fc
Author: Oliver B. Fischer <pl...@apache.org>
Authored: Sat Jan 17 11:02:13 2015 +0100
Committer: Oliver B. Fischer <pl...@apache.org>
Committed: Sat Jan 17 11:02:13 2015 +0100

----------------------------------------------------------------------
 .../tamaya/resource/internal/FileCollector.java    | 17 -----------------
 1 file changed, 17 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/b44509c6/modules/resources/src/main/java/org/apache/tamaya/resource/internal/FileCollector.java
----------------------------------------------------------------------
diff --git a/modules/resources/src/main/java/org/apache/tamaya/resource/internal/FileCollector.java b/modules/resources/src/main/java/org/apache/tamaya/resource/internal/FileCollector.java
index 6d85a92..f1b753d 100644
--- a/modules/resources/src/main/java/org/apache/tamaya/resource/internal/FileCollector.java
+++ b/modules/resources/src/main/java/org/apache/tamaya/resource/internal/FileCollector.java
@@ -134,23 +134,6 @@ public class FileCollector {
     }
 
     /**
-     * Simple matcher method for a single token.
-     * @param childFile the file to match
-     * @param subTokens the subtoken list
-     * @param tokenIndex the index where to start
-     * @return true if the file matches and should be selected.
-     */
-    private static boolean matchesFile(File childFile, List<String> subTokens, int tokenIndex) {
-        if (tokenIndex < (subTokens.size() - 1)) {
-            // not all tokens consumed, so no match!
-            return false;
-        }
-        String tokenToMatch = subTokens.get(tokenIndex);
-        tokenToMatch = tokenToMatch.replace("*", ".*").replace("?", ".?");
-        return childFile.getName().matches(tokenToMatch);
-    }
-
-    /**
      * Get an URL from a file.
      *
      * @param file the file, not null.