Skip to content

Commit 4a53ab8

Browse files
authored
Remove Directory, Entry and File classes.
1 parent 9115239 commit 4a53ab8

File tree

8 files changed

+0
-434
lines changed

8 files changed

+0
-434
lines changed

src/main/java/com/github/underscore/lodash/Directory.java

Lines changed: 0 additions & 70 deletions
This file was deleted.

src/main/java/com/github/underscore/lodash/Entry.java

Lines changed: 0 additions & 84 deletions
This file was deleted.

src/main/java/com/github/underscore/lodash/File.java

Lines changed: 0 additions & 49 deletions
This file was deleted.

src/main/java/com/github/underscore/lodash/U.java

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3535,28 +3535,6 @@ public List<List<T>> createPermutationWithRepetition(final int permutationLength
35353535
return createPermutationWithRepetition((List<T>) value(), permutationLength);
35363536
}
35373537

3538-
public static List<Entry> findByName(final Entry entry, final String name) {
3539-
final List<Entry> result = new ArrayList<Entry>();
3540-
final Queue<Entry> allFiles = new LinkedList<Entry>();
3541-
allFiles.add(entry);
3542-
while (!allFiles.isEmpty()) {
3543-
final Entry localEntry = allFiles.poll();
3544-
if (localEntry instanceof Directory) {
3545-
final List<Entry> files = ((Directory) localEntry).getContents();
3546-
for (final Entry innerFile : files) {
3547-
if (innerFile instanceof Directory) {
3548-
allFiles.add(innerFile);
3549-
} else if (innerFile.getName().equals(name)) {
3550-
result.add(innerFile);
3551-
}
3552-
}
3553-
} else if (localEntry.getName().equals(name)) {
3554-
result.add(localEntry);
3555-
}
3556-
}
3557-
return result;
3558-
}
3559-
35603538
@SuppressWarnings("unchecked")
35613539
public static String jsonToXml(String json) {
35623540
Object result = fromJson(json);

src/test/java/com/github/underscore/lodash/DirectoryTest.java

Lines changed: 0 additions & 51 deletions
This file was deleted.

src/test/java/com/github/underscore/lodash/EntryTest.java

Lines changed: 0 additions & 89 deletions
This file was deleted.

0 commit comments

Comments
 (0)