8000 Remove unused requiresTreeMetadataWhenTreeFileIsInput. · coderabbit-test/bazel@13a1cec · GitHub
[go: up one dir, main page]

Skip to content

Commit 13a1cec

Browse files
ericfellycopybara-github
authored andcommitted
Remove unused requiresTreeMetadataWhenTreeFileIsInput.
RELNOTES: None PiperOrigin-RevId: 696970804 Change-Id: I498436d6711814571fe7cacd6f1a9c0e05e88353
1 parent 79764b2 commit 13a1cec

File tree

2 files changed

+3
-26
lines changed

2 files changed

+3
-26
lines changed

src/main/java/com/google/devtools/build/lib/actions/ActionInputPrefetcher.java

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -31,21 +31,9 @@ public interface MetadataSupplier {
3131
}
3232

3333
public static final ActionInputPrefetcher NONE =
34-
new ActionInputPrefetcher() {
35-
@Override
36-
public ListenableFuture<Void> prefetchFiles(
37-
ActionExecutionMetadata action,
38-
Iterable<? extends ActionInput> inputs,
39-
MetadataSupplier metadataSupplier,
40-
Priority priority) {
41-
// Do nothing.
42-
return immediateVoidFuture();
43-
}
44-
45-
@Override
46-
public boolean requiresTreeMetadataWhenTreeFileIsInput() {
47-
return false;
48-
}
34+
(action, inputs, metadataSupplier, priority) -> {
35+
// Do nothing.
36+
return immediateVoidFuture();
4937
};
5038

5139
/** Priority for the staging task. */
@@ -84,10 +72,4 @@ ListenableFuture<Void> prefetchFiles(
8472
Iterable<? extends ActionInput> inputs,
8573
MetadataSupplier metadataSupplier,
8674
Priority priority);
87-
88-
/**
89-
* Whether the prefetcher requires the metadata for a tree artifact to be available whenever one
90-
* of the files in the tree artifact is an action input.
91-
*/
92-
boolean requiresTreeMetadataWhenTreeFileIsInput();
9375
}

src/main/java/com/google/devtools/build/lib/remote/RemoteActionInputFetcher.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,6 @@ public class RemoteActionInputFetcher extends AbstractActionInputPrefetcher {
6767
this.combinedCache = Preconditions.checkNotNull(combinedCache);
6868
}
6969

70-
@Override
71-
public boolean requiresTreeMetadataWhenTreeFileIsInput() {
72-
return true;
73-
}
74-
7570
@Override
7671
protected void prefetchVirtualActionInput(VirtualActionInput input) throws IOException {
7772
input.atomicallyWriteRelativeTo(execRoot);

0 commit comments

Comments
 (0)
0