Skip to content

Commit 09e3812

Browse files
committed
Unused
1 parent 24fc69c commit 09e3812

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

src/main/java/org/apache/commons/io/file/PathUtils.java

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ public final class PathUtils {
6060
private static class RelativeSortedPaths {
6161

6262
final boolean equals;
63-
final List<Path> relativeDirList1; // might need later?
64-
final List<Path> relativeDirList2; // might need later?
63+
// final List<Path> relativeDirList1; // might need later?
64+
// final List<Path> relativeDirList2; // might need later?
6565
final List<Path> relativeFileList1;
6666
final List<Path> relativeFileList2;
6767

@@ -91,8 +91,8 @@ private RelativeSortedPaths(final Path dir1, final Path dir2, final int maxDepth
9191
if (!parentDirExists1 || !parentDirExists2) {
9292
equals = !parentDirExists1 && !parentDirExists2;
9393
} else {
94-
AccumulatorPathVisitor visitor1 = accumulate(dir1, maxDepth, linkOptions, fileVisitOptions);
95-
AccumulatorPathVisitor visitor2 = accumulate(dir2, maxDepth, linkOptions, fileVisitOptions);
94+
AccumulatorPathVisitor visitor1 = accumulate(dir1, maxDepth, fileVisitOptions);
95+
AccumulatorPathVisitor visitor2 = accumulate(dir2, maxDepth, fileVisitOptions);
9696
if (visitor1.getDirList().size() != visitor2.getDirList().size()
9797
|| visitor1.getFileList().size() != visitor2.getFileList().size()) {
9898
equals = false;
@@ -109,8 +109,8 @@ private RelativeSortedPaths(final Path dir1, final Path dir2, final int maxDepth
109109
}
110110
}
111111
}
112-
relativeDirList1 = tmpRelativeDirList1;
113-
relativeDirList2 = tmpRelativeDirList2;
112+
// relativeDirList1 = tmpRelativeDirList1;
113+
// relativeDirList2 = tmpRelativeDirList2;
114114
relativeFileList1 = tmpRelativeFileList1;
115115
relativeFileList2 = tmpRelativeFileList2;
116116
}
@@ -136,13 +136,12 @@ private RelativeSortedPaths(final Path dir1, final Path dir2, final int maxDepth
136136
*
137137
* @param directory The directory to accumulate information.
138138
* @param maxDepth See {@link Files#walkFileTree(Path,Set,int,FileVisitor)}.
139-
* @param linkOptions Options indicating how symbolic links are handled.
140139
* @param fileVisitOptions See {@link Files#walkFileTree(Path,Set,int,FileVisitor)}.
141140
* @throws IOException if an I/O error is thrown by a visitor method.
142141
* @return file tree information.
143142
*/
144143
private static AccumulatorPathVisitor accumulate(final Path directory, final int maxDepth,
145-
final LinkOption[] linkOptions, final FileVisitOption[] fileVisitOptions) throws IOException {
144+
final FileVisitOption[] fileVisitOptions) throws IOException {
146145
return visitFileTree(AccumulatorPathVisitor.withLongCounters(), directory,
147146
toFileVisitOptionSet(fileVisitOptions), maxDepth);
148147
}

0 commit comments

Comments
 (0)