aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/skyframe/RecursiveFilesystemTraversalFunction.java
diff options
context:
space:
mode:
authorGravatar felly <felly@google.com>2018-01-29 14:49:04 -0800
committerGravatar Copybara-Service <copybara-piper@google.com>2018-01-29 14:50:53 -0800
commit016a42bc5e6368fb34a52394e93058348c4ef1a3 (patch)
tree418f20642a554a312f3c14ec1c7613fa795afeaf /src/main/java/com/google/devtools/build/lib/skyframe/RecursiveFilesystemTraversalFunction.java
parentac03ccfc4377d4de0385ef05702289c9fa285d69 (diff)
Remove unused "pattern" feature in RecursiveFilesystemTraversalFunction.
PiperOrigin-RevId: 183731563
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/skyframe/RecursiveFilesystemTraversalFunction.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/skyframe/RecursiveFilesystemTraversalFunction.java11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/skyframe/RecursiveFilesystemTraversalFunction.java b/src/main/java/com/google/devtools/build/lib/skyframe/RecursiveFilesystemTraversalFunction.java
index bc02d56ac9..f6bdfc69f8 100644
--- a/src/main/java/com/google/devtools/build/lib/skyframe/RecursiveFilesystemTraversalFunction.java
+++ b/src/main/java/com/google/devtools/build/lib/skyframe/RecursiveFilesystemTraversalFunction.java
@@ -133,16 +133,7 @@ public final class RecursiveFilesystemTraversalFunction implements SkyFunction {
}
if (rootInfo.type.isFile()) {
- if (traversal.pattern == null
- || traversal
- .pattern
- .matcher(rootInfo.realPath.getRootRelativePath().getPathString())
- .matches()) {
- // The root is a file or a symlink to one.
- return resultForFileRoot(traversal.path, rootInfo);
- } else {
- return RecursiveFilesystemTraversalValue.EMPTY;
- }
+ return resultForFileRoot(traversal.path, rootInfo);
}
// Otherwise the root is a directory or a symlink to one.