]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Source/MigrationTools/org/tianocore/migration/PathIterator.java
Restructuring for better separation of Tool packages.
[mirror_edk2.git] / Tools / Source / MigrationTools / org / tianocore / migration / PathIterator.java
diff --git a/Tools/Source/MigrationTools/org/tianocore/migration/PathIterator.java b/Tools/Source/MigrationTools/org/tianocore/migration/PathIterator.java
deleted file mode 100644 (file)
index 5a286c9..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-/** @file\r
\r
- Copyright (c) 2006, Intel Corporation\r
- All rights reserved. This program and the accompanying materials\r
- are licensed and made available under the terms and conditions of the BSD License\r
- which accompanies this distribution.  The full text of the license may be found at\r
- http://opensource.org/licenses/bsd-license.php\r
\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- **/\r
-package org.tianocore.migration;\r
-\r
-import java.io.File;\r
-import java.util.*;\r
-\r
-public final class PathIterator implements Common.ForDoAll {\r
-//     this PathIterator is based on HashSet, an thread implementation is required.\r
-    PathIterator(String path, int md) throws Exception {\r
-        startpath = path;\r
-        mode = md;\r
-        Common.toDoAll(startpath, this, mode);\r
-        it = pathlist.iterator();\r
-    }\r
-    private String startpath = null;\r
-    private int mode;\r
-    private HashSet<String> pathlist = new HashSet<String>();\r
-    private Iterator<String> it = null;\r
-\r
-    public final void run(String path) throws Exception {\r
-        pathlist.add(path);\r
-    }\r
-\r
-    public boolean filter(File dir) {\r
-        return true;\r
-    }\r
-    \r
-    public final String next() {\r
-        return it.next();\r
-    }\r
-\r
-    public final boolean hasNext() {\r
-        return it.hasNext();\r
-    }\r
-\r
-    public final String toString() {\r
-        return pathlist.toString();\r
-    }\r
-}\r